Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Return NameLoad Raise Call NameLoad decorator_list decorator_list If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Return Call Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return BinOpMod Str TupleLoad SubscriptLoad TupleLoad Str Str Str Str Str Str Str Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Index BinOpSub AttributeLoad NameLoad attr Num NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Return Call NameLoad NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Lambda arguments args defaults TupleLoad Call NameLoad NameLoad Str Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore BoolOpOr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str For NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpAnd NameLoad CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad Str attr BinOpAdd ListLoad Str ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str BoolOpAnd NameLoad CompareNotEq NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num If CompareIs NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpOr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad Assign NameStore ListLoad TupleLoad Str Call NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad NameLoad attr TupleLoad TupleLoad Str NameLoad TupleLoad Str Call NameLoad NameLoad TupleLoad Str Call NameLoad NameLoad Expr Call NameLoad Str NameLoad Return Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
This code is adapted from the Werkzeug project, under the BSD license.

:copyright: (c) 2011 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
 N/A os N/A mimetypes datetime datetime time gmtime N/A six FileWrapper N/A object N/A N/A This class can be used to convert a :class:`file`-like object into
    an iterable.  It yields `buffer_size` blocks until the file is fully
    read.

    You should not use this class directly but rather use the
    :func:`wrap_file` function that uses the WSGI server's file wrapper
    support if it's available.

    :param file: a :class:`file`-like object with a :meth:`~file.read` method.
    :param buffer_size: number of bytes for one iteration.
     __init__ N/A N/A self file buffer_size N/A 8192 N/A N/A N/A self file file N/A N/A self buffer_size buffer_size N/A close N/A N/A self N/A N/A N/A N/A hasattr N/A self file close N/A N/A N/A N/A N/A self file close N/A __iter__ N/A N/A self N/A N/A N/A self N/A next N/A N/A self N/A N/A N/A data N/A N/A N/A self file read N/A self buffer_size N/A data N/A N/A data N/A N/A StopIteration N/A N/A N/A N/A six PY3 N/A N/A N/A FileWrapper __next__ N/A FileWrapper next wrap_file N/A N/A environ file buffer_size N/A 8192 N/A N/A Wraps a file.  This uses the WSGI server's file wrapper if available
    or otherwise the generic :class:`FileWrapper`.

    If the file wrapper from the WSGI server is used it's important to not
    iterate over it from inside the application but to pass it through
    unchanged.

    More information about file wrappers are available in :pep:`333`.

    :param file: a :class:`file`-like object with a :meth:`~file.read` method.
    :param buffer_size: number of bytes for one iteration.
     N/A N/A N/A N/A environ get wsgi.file_wrapper FileWrapper file buffer_size N/A _dump_date N/A N/A d delim N/A N/A N/A Used for `http_date` and `cookie_date`. N/A N/A d None N/A N/A d N/A gmtime N/A N/A N/A isinstance d datetime N/A N/A d N/A N/A d utctimetuple N/A N/A N/A isinstance d N/A int float N/A N/A d N/A gmtime d N/A N/A %s, %02d%s%s%s%s %02d:%02d:%02d GMT N/A N/A N/A Mon Tue Wed Thu Fri Sat Sun N/A N/A d tm_wday N/A d tm_mday delim N/A N/A Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec N/A N/A N/A d tm_mon 1 delim N/A str N/A d tm_year N/A d tm_hour N/A d tm_min N/A d tm_sec N/A http_date N/A N/A timestamp N/A None N/A N/A Formats the time to match the RFC1123 date format.

    Accepts a floating point number expressed in seconds since the epoch in, a
    datetime object or a timetuple.  All times in UTC.

    Outputs a string in the format ``Wdy, DD Mon YYYY HH:MM:SS GMT``.

    :param timestamp: If provided that date is used, otherwise the current.
     N/A N/A _dump_date timestamp N/A StaticFileMiddleware N/A object N/A N/A A WSGI middleware that provides static content for development
    environments.

    Currently the middleware does not support non ASCII filenames.  If the
    encoding on the file system happens to be the encoding of the URI it may
    work but this could also be by accident.  We strongly suggest using ASCII
    only file names for static files.

    The middleware will guess the mimetype using the Python `mimetype`
    module.  If it's unable to figure out the charset it will fall back
    to `fallback_mimetype`.

    :param app: the application to wrap.  If you don't want to wrap an
                application you can pass it :exc:`NotFound`.
    :param directory: the directory to serve up.
    :param fallback_mimetype: the fallback mimetype for unknown files.
     __init__ N/A N/A self app directory fallback_mimetype N/A text/plain N/A N/A N/A self app app N/A N/A self loader N/A N/A self get_directory_loader directory N/A N/A self fallback_mimetype fallback_mimetype N/A _opener N/A N/A self filename N/A N/A N/A N/A N/A N/A N/A N/A N/A open filename rb N/A N/A datetime utcfromtimestamp N/A N/A N/A os path getmtime filename N/A int N/A N/A N/A os path getsize filename N/A get_directory_loader N/A N/A self directory N/A N/A loader N/A N/A path N/A N/A N/A path N/A path directory N/A N/A path None N/A N/A path N/A N/A N/A os path join directory path N/A N/A N/A N/A os path isfile path N/A N/A N/A N/A N/A N/A os path basename path N/A N/A self _opener path N/A N/A None None N/A N/A loader N/A __call__ N/A N/A self environ start_response N/A N/A N/A cleaned_path N/A N/A N/A N/A environ get PATH_INFO strip / N/A sep N/A N/A os sep N/A os altsep N/A N/A N/A sep N/A sep / N/A N/A cleaned_path N/A N/A cleaned_path replace sep / N/A path N/A N/A / join N/A N/A N/A x N/A x N/A N/A cleaned_path split / N/A x N/A x .. N/A N/A real_filename file_loader N/A N/A self loader N/A path N/A 1 N/A N/A file_loader None N/A N/A N/A N/A self app environ start_response N/A guessed_type N/A N/A mimetypes guess_type real_filename N/A mime_type N/A N/A guessed_type N/A 0 N/A self fallback_mimetype N/A N/A f mtime file_size N/A file_loader N/A headers N/A N/A Date N/A http_date N/A N/A N/A headers append N/A Cache-Control public N/A N/A N/A headers extend N/A N/A Content-Type mime_type N/A Content-Length N/A str file_size N/A Last-Modified N/A http_date mtime N/A N/A start_response 200 OK headers N/A N/A wrap_file environ f N/A N/A