diff options
Diffstat (limited to 'src/webob/static.py')
-rw-r--r-- | src/webob/static.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webob/static.py b/src/webob/static.py index 52ad566..27f1324 100644 --- a/src/webob/static.py +++ b/src/webob/static.py @@ -16,7 +16,7 @@ mimetypes.add_type("image/x-icon", ".ico") # not among defaults BLOCK_SIZE = 1 << 16 -class FileApp(object): +class FileApp: """An application that will send the file at the given filename. Adds a mime type based on `mimetypes.guess_type()`. @@ -62,7 +62,7 @@ class FileApp(object): ).conditional_response_app -class FileIter(object): +class FileIter: def __init__(self, file): self.file = file @@ -104,7 +104,7 @@ class FileIter(object): __iter__ = app_iter_range -class DirectoryApp(object): +class DirectoryApp: """An application that serves up the files in a given directory. This will serve index files (by default ``index.html``), or set |