Module Expr Str ImportFrom alias Import alias TryExcept body ImportFrom alias identifier alias ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias identifier alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Assign NameStore TupleLoad Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Import alias If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return CompareEq Call NameLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad Str keyword Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str keyword Str TryFinally body Return Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad Str Str AttributeLoad NameLoad attr If NameLoad body Assign TupleStore NameStore NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr Num body Raise Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad Str Str AttributeLoad NameLoad attr orelse With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad Str Str AttributeLoad NameLoad attr TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Str keyword Str TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Str Return Call NameLoad Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot CompareIn NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assert CompareIn NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BoolOpOr NameLoad Dict FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Expr Call Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Num Return NameLoad decorator_list Assign NameStore ListLoad If NameLoad body For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad Str NameLoad Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assert CompareIn NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Raise Call NameLoad If CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str Call AttributeLoad Str attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BoolOpOr NameLoad Dict FunctionDef arguments args defaults body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad Expr Call Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore ListLoad If NameLoad body For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad Str NameLoad Call NameLoad NameLoad NameLoad BoolOpOr NameLoad ListLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice If NameLoad body For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListComp NameLoad comprehension NameStore NameLoad BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareLtE Call NameLoad NameLoad AttributeLoad NameLoad attr Num decorator_list
N/A N/A Contains the core functionality that manages merging of assets.
 __future__ with_statement N/A contextlib N/A N/A urllib.request Request URLRequest urlopen urllib.error HTTPError N/A N/A N/A ImportError N/A urllib2 Request URLRequest urlopen urllib2 HTTPError N/A logging io open webassets.six.moves filter utils cmp_debug_levels StringIO hash_func N/A __all__ N/A FileHunk MemoryHunk merge FilterTool MoreThanOneFilterError NoFilters N/A log N/A N/A logging getLogger webassets.debug N/A N/A N/A log addHandler N/A N/A logging StreamHandler N/A os N/A N/A N/A N/A os environ get WEBASSETS_DEBUG N/A N/A N/A N/A log setLevel N/A logging DEBUG N/A N/A N/A N/A log setLevel N/A logging ERROR BaseHunk N/A object N/A N/A Abstract base class.
     mtime N/A N/A self N/A N/A N/A N/A NotImplementedError N/A id N/A N/A self N/A N/A N/A N/A hash_func N/A N/A self data N/A __eq__ N/A N/A self other N/A N/A N/A N/A isinstance other BaseHunk N/A N/A N/A N/A hash_func self N/A hash_func other N/A False N/A data N/A N/A self N/A N/A N/A N/A NotImplementedError N/A save N/A N/A self filename N/A N/A N/A N/A open filename w encoding utf-8 f N/A N/A N/A N/A f write N/A N/A self data N/A N/A FileHunk N/A BaseHunk N/A N/A Exposes a single file through as a hunk.
     __init__ N/A N/A self filename N/A N/A N/A N/A self filename filename N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s %s> N/A N/A N/A self __class__ __name__ N/A self filename N/A mtime N/A N/A self N/A N/A N/A N/A data N/A N/A self N/A N/A N/A f N/A open N/A self filename r encoding utf-8 N/A N/A N/A N/A N/A f read N/A N/A N/A N/A f close N/A N/A UrlHunk N/A BaseHunk N/A N/A Represents a file that is referenced by an Url.

    If an environment is given, it's cache will be used to cache the url
    contents, and to access it, as allowed by the etag/last modified headers.
     __init__ N/A N/A self url env N/A None N/A N/A N/A self url url N/A N/A self env env N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s %s> N/A N/A N/A self __class__ __name__ N/A self url N/A data N/A N/A self N/A N/A N/A N/A N/A hasattr self _data N/A N/A request N/A URLRequest N/A self url N/A N/A N/A self env N/A N/A self env cache N/A N/A headers N/A N/A N/A N/A self env cache get N/A url headers N/A self url N/A headers N/A N/A N/A etag lmod headers N/A etag N/A N/A N/A N/A request add_header If-None-Match etag N/A lmod N/A N/A N/A N/A request add_header If-Modified-Since lmod N/A N/A N/A response N/A urlopen request N/A N/A N/A HTTPError N/A e N/A N/A N/A N/A e code 304 N/A N/A N/A N/A self _data N/A N/A N/A N/A self env cache get N/A url contents N/A self url N/A N/A N/A N/A contextlib closing response N/A N/A N/A self _data N/A N/A response read N/A N/A N/A self env N/A N/A self env cache N/A N/A N/A N/A N/A N/A self env cache set N/A url headers N/A self url N/A N/A N/A N/A response headers get ETag N/A N/A N/A response headers get Last-Modified N/A N/A N/A N/A N/A self env cache set N/A url contents N/A self url N/A self _data N/A N/A self _data N/A N/A MemoryHunk N/A BaseHunk N/A N/A Content that is no longer a direct representation of a source file. It
    might have filters applied, and is probably the result of merging multiple
    individual source files together.
     __init__ N/A N/A self data files N/A None N/A N/A N/A self _data data N/A N/A self files N/A files N/A N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s %s> N/A N/A N/A self __class__ __name__ N/A hash_func self N/A mtime N/A N/A self N/A N/A N/A N/A data N/A N/A self N/A N/A N/A N/A hasattr N/A self _data read N/A N/A N/A N/A N/A self _data read N/A N/A self _data N/A save N/A N/A self filename N/A N/A N/A f N/A open filename w encoding utf-8 N/A N/A N/A N/A N/A f write N/A N/A self data N/A N/A N/A N/A f close N/A N/A merge N/A N/A hunks separator N/A None N/A N/A Merge the given list of hunks, returning a new ``MemoryHunk`` object.
     N/A N/A separator N/A N/A separator N/A N/A MemoryHunk N/A N/A separator join N/A N/A N/A h data N/A h hunks N/A MoreThanOneFilterError N/A Exception N/A __init__ N/A N/A self message filters N/A N/A N/A N/A N/A Exception __init__ self message N/A N/A self filters filters N/A N/A NoFilters N/A Exception N/A N/A N/A FilterTool N/A object N/A N/A Can apply filters to hunk objects, while using the cache.

    If ``no_cache_read`` is given, then the cache will not be considered for
    this operation (though the result will still be written to the cache).

    ``kwargs`` are options that should be passed along to the filters.
     N/A VALID_TRANSFORMS N/A input output N/A VALID_FUNCS N/A open concat __init__ N/A N/A self cache no_cache_read kwargs N/A None False None N/A N/A N/A self cache cache N/A N/A self no_cache_read no_cache_read N/A N/A self kwargs N/A kwargs N/A N/A _wrap_cache N/A N/A self key func N/A N/A N/A Return cache value ``key``, or run ``func``.
         N/A N/A self cache N/A N/A N/A N/A self no_cache_read N/A N/A N/A N/A log debug Checking cache for key %s key N/A content N/A N/A N/A self cache get key N/A N/A N/A content N/A False None N/A N/A N/A N/A log debug Using cached result for %s key N/A N/A MemoryHunk content N/A content N/A N/A N/A func getvalue N/A N/A self cache N/A N/A N/A N/A log debug Storing result in cache with key %s key N/A N/A N/A N/A self cache set key content N/A N/A MemoryHunk content N/A apply N/A N/A self hunk filters type kwargs N/A None N/A N/A Apply the given list of filters to the hunk, returning a new
        ``MemoryHunk`` object.

        ``kwargs`` are options that should be passed along to the filters.
        If ``hunk`` is a file hunk, a ``source_path`` key will automatically
        be added to ``kwargs``.
         N/A N/A type N/A self VALID_TRANSFORMS N/A N/A N/A log debug Need to run method "%s" of filters (%s) on hunk %s with kwargs=%s type filters hunk kwargs N/A filters N/A f N/A f filters N/A getattr f type None N/A N/A filters N/A N/A N/A N/A log debug N/A No filters have "%s" methods, returning hunk unchanged N/A type N/A hunk N/A kwargs_final N/A N/A N/A self kwargs copy N/A N/A N/A kwargs_final update N/A kwargs N/A func N/A N/A N/A N/A N/A data N/A StringIO N/A N/A hunk data N/A filter filters N/A N/A N/A N/A log debug Running method "%s" of  %s with kwargs=%s type filter kwargs_final N/A out N/A StringIO N/A N/A N/A getattr filter type data out kwargs_final N/A data out N/A N/A N/A data seek 0 N/A data N/A N/A additional_cache_keys N/A N/A kwargs_final N/A N/A filter filters N/A N/A additional_cache_keys N/A N/A filter get_additional_cache_keys kwargs_final N/A key N/A hunk hunk N/A tuple filters type additional_cache_keys N/A N/A N/A self _wrap_cache key func N/A apply_func N/A N/A self filters type args kwargs cache_key N/A None None N/A N/A Apply a filter that is not a "stream in, stream out" transform (i.e.
        like the input() and output() filter methods).  Instead, the filter
        method is given the arguments in ``args`` and should then produce an
        output stream. This is used, e.g., for the concat() and open() filter
        methods.

        Only one such filter can run per operation.

        ``cache_key`` may be a list of additional values to use as the cache
        key, in addition to the default key (the filter and arguments).
         N/A N/A type N/A self VALID_FUNCS N/A N/A N/A log debug Need to run method "%s" of one of the filters (%s) with args=%s, kwargs=%s type filters args kwargs N/A filters N/A f N/A f filters N/A getattr f type None N/A N/A filters N/A N/A N/A N/A log debug N/A No filters have a "%s" method type N/A N/A NoFilters N/A N/A N/A len filters 1 N/A N/A N/A MoreThanOneFilterError N/A These filters cannot be combined: %s N/A N/A ,  join N/A N/A f name N/A f filters filters N/A kwargs_final N/A N/A N/A self kwargs copy N/A N/A N/A kwargs_final update N/A kwargs N/A func N/A N/A N/A N/A N/A filter N/A filters N/A 0 N/A out N/A StringIO N/A N/A N/A log debug Running method "%s" of %s with args=%s, kwargs=%s type filter args kwargs N/A N/A N/A getattr filter type out args kwargs_final N/A out N/A N/A additional_cache_keys N/A N/A kwargs_final N/A N/A filter filters N/A N/A additional_cache_keys N/A N/A filter get_additional_cache_keys kwargs_final N/A key N/A hunk args N/A tuple filters type N/A cache_key N/A additional_cache_keys N/A N/A N/A self _wrap_cache key func N/A N/A merge_filters N/A N/A filters1 filters2 N/A N/A N/A Merge two filter lists into one.

    Duplicate filters are removed. Since filter order is important, the order
    of the arguments to this function also matter. Duplicates are always
    removed from the second filter set if they exist in the first.

    The result will always be ``filters1``, with additional unique filters
    from ``filters2`` appended. Within the context of a hierarchy, you want
    ``filters2`` to be the parent.

    This function presumes that all the given filters inherit from ``Filter``,
    which properly implements operators to determine duplicate filters.
     N/A result N/A list N/A filters1 N/A N/A filters2 N/A N/A f filters2 N/A N/A N/A N/A f result N/A N/A N/A N/A result append f N/A result N/A select_filters N/A N/A filters level N/A N/A N/A Return from the list in ``filters`` those filters which indicate that
    they should run for the given debug level.
     N/A N/A f N/A f filters N/A N/A N/A f max_debug_level None N/A N/A cmp_debug_levels level N/A f max_debug_level 0 N/A