Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Str Str Import alias identifier TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str FunctionDef arguments args defaults body Expr Str If CompareNotIn NameLoad SubscriptLoad NameLoad Index Str body Return NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad If CompareNotIn SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad ListComp NameLoad comprehension NameStore Call NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Num NameLoad Index Num handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad ListComp NameLoad comprehension NameStore Call NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Num NameLoad Index Num handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad ListComp NameLoad comprehension NameStore Call NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Num NameLoad Index Num handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpOr CompareEq NameLoad SubscriptLoad NameLoad Index Str CompareIn NameLoad Call NameLoad body If CompareEq SubscriptLoad NameLoad Index Str Str body Return BoolOpOr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Str NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Return BoolOpOr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Str NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Return BoolOpOr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Call AttributeLoad Str attr NameLoad For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad ListComp TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Call AttributeLoad Str attr NameLoad Expr Call NameLoad Assign NameStore NameLoad For NameStore GeneratorExp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call NameLoad TryExcept body Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Pass Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call NameLoad ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword Str handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str TryExcept body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore ListLoad Assign NameStore Call NameLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Pass Assign NameStore ListLoad For NameStore NameLoad body If CompareIn NameLoad TupleLoad Str Str body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If NameLoad body For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Assign NameStore ListLoad For NameStore TupleLoad NameLoad NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore ListLoad Assign NameStore ListLoad If Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str body TryExcept body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad NameLoad NameLoad orelse Expr Call NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad body If NameLoad body TryExcept body If UnaryOpNot Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad body Continue handlers ExceptHandler type NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad body Continue Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str body TryExcept body With Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str NameStore body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad body If NameLoad body TryExcept body If UnaryOpNot Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad body Continue handlers ExceptHandler type NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad body Continue Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Str Str NameLoad Str Assign TupleStore SubscriptStore NameLoad Index Str NameStore Call NameLoad For NameStore NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Continue Assign TupleStore NameStore NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Continue Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr TryExcept body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr If CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str If BoolOpOr CompareIs Call AttributeLoad NameLoad attr Str NameLoad NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad Str Str keyword Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad For NameStore Call NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr If CompareIn SubscriptLoad NameLoad Index Str TupleLoad Str Str body For NameStore Call NameLoad SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad SubscriptLoad NameLoad Index Str body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn SubscriptLoad NameLoad Index Str TupleLoad Str Str body For NameStore Call NameLoad SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad SubscriptLoad NameLoad Index Str body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Return ListComp NameLoad comprehension NameStore Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str kwarg body Expr Str Assign NameStore Dict Str Str Str Str If BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareNotIn NameLoad Call NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad body If BoolOpAnd SubscriptLoad NameLoad Index Str UnaryOpNot Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr body Continue Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Call NameLoad SubscriptLoad NameLoad Index Str attr AttributeLoad AttributeLoad NameLoad attr attr If SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Continue Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Return NameLoad TryExcept body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Call AttributeLoad Str attr NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Continue With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str If UnaryOpNot Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore TupleLoad Str Str Str body Return NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Return NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If BoolOpAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore TupleLoad Str Str body Return Str Assign NameStore Dict Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad orelse With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad If NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad ListLoad Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str If BoolOpOr CompareNotIn Str NameLoad CompareNotIn SubscriptLoad NameLoad Index Str Call NameLoad body Return ListLoad Assign NameStore Call NameLoad For NameStore Call NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword SubscriptLoad NameLoad Index Num For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str If BoolOpOr CompareNotIn Str NameLoad CompareNotIn SubscriptLoad NameLoad Index Str Call NameLoad body Return ListLoad Assign NameStore Call NameLoad For NameStore Call NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword SubscriptLoad NameLoad Index Num For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Num While CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Str body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Num Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return Call NameLoad NameLoad decorator_list
N/A N/A 
Mercurial Fileserver Backend

To enable, add ``hg`` to the :conf_master:`fileserver_backend` option in the
Master config file.

.. code-block:: yaml

    fileserver_backend:
      - hg

After enabling this backend, branches, bookmarks, and tags in a remote
mercurial repository are exposed to salt as different environments. This
feature is managed by the :conf_master:`fileserver_backend` option in the salt
master config file.

This fileserver has an additional option :conf_master:`hgfs_branch_method` that
will set the desired branch method. Possible values are: ``branches``,
``bookmarks``, or ``mixed``. If using ``branches`` or ``mixed``, the
``default`` branch will be mapped to ``base``.


.. versionchanged:: 2014.1.0
    The :conf_master:`hgfs_base` master config parameter was added, allowing
    for a branch other than ``default`` to be used for the ``base``
    environment, and allowing for a ``base`` environment to be specified when
    using an :conf_master:`hgfs_branch_method` of ``bookmarks``.


:depends:   - mercurial
            - python bindings for mercurial (``python-hglib``)
 __future__ absolute_import N/A copy N/A errno N/A fnmatch N/A glob N/A hashlib N/A logging N/A os N/A shutil datetime datetime salt.exceptions FileserverConfigError N/A VALID_BRANCH_METHODS N/A branches bookmarks mixed N/A PER_REMOTE_OVERRIDES N/A base branch_method mountpoint root N/A salt.ext.six six N/A N/A N/A hglib N/A HAS_HG True N/A N/A N/A ImportError N/A N/A HAS_HG False N/A salt.utils N/A salt.utils.url N/A salt.fileserver salt.utils.event tagify N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ hg __virtual__ N/A N/A N/A N/A N/A 
    Only load if mercurial is available
     N/A N/A __virtualname__ N/A __opts__ N/A fileserver_backend N/A N/A False N/A N/A HAS_HG N/A N/A N/A N/A log error Mercurial fileserver backend is enabled in configuration but could not be loaded, is hglib installed? N/A False N/A N/A N/A __opts__ N/A hgfs_branch_method VALID_BRANCH_METHODS N/A N/A N/A N/A log error N/A N/A Invalid hgfs_branch_method '{0}'. Valid methods are: {1} format N/A __opts__ N/A hgfs_branch_method VALID_BRANCH_METHODS N/A False N/A __virtualname__ N/A _all_branches N/A N/A repo N/A N/A N/A 
    Returns all branches for the specified repo
     N/A N/A N/A repo branches N/A _get_branch N/A N/A repo name N/A N/A N/A 
    Find the requested branch in the specified repo
     N/A N/A N/A N/A N/A x N/A x N/A _all_branches repo N/A N/A x N/A 0 name N/A 0 N/A N/A N/A IndexError N/A N/A False N/A _all_bookmarks N/A N/A repo N/A N/A N/A 
    Returns all bookmarks for the specified repo
     N/A N/A N/A N/A repo bookmarks N/A 0 N/A _get_bookmark N/A N/A repo name N/A N/A N/A 
    Find the requested bookmark in the specified repo
     N/A N/A N/A N/A N/A x N/A x N/A _all_bookmarks repo N/A N/A x N/A 0 name N/A 0 N/A N/A N/A IndexError N/A N/A False N/A _all_tags N/A N/A repo N/A N/A N/A 
    Returns all tags for the specified repo
     N/A N/A x N/A x N/A N/A repo tags N/A N/A x N/A 0 tip N/A _get_tag N/A N/A repo name N/A N/A N/A 
    Find the requested tag in the specified repo
     N/A N/A N/A N/A N/A x N/A x N/A _all_tags repo N/A N/A x N/A 0 name N/A 0 N/A N/A N/A IndexError N/A N/A False N/A _get_ref N/A N/A repo name N/A N/A N/A 
    Return ref tuple if ref is in the repo.
     N/A N/A name base N/A N/A name N/A repo N/A base N/A N/A N/A name N/A repo N/A base N/A name N/A envs N/A N/A N/A N/A repo N/A branch_method branches N/A N/A N/A N/A _get_branch N/A repo N/A repo name N/A _get_tag N/A repo N/A repo name N/A N/A N/A N/A repo N/A branch_method bookmarks N/A N/A N/A N/A _get_bookmark N/A repo N/A repo name N/A _get_tag N/A repo N/A repo name N/A N/A N/A N/A repo N/A branch_method mixed N/A N/A N/A N/A _get_branch N/A repo N/A repo name N/A _get_bookmark N/A repo N/A repo name N/A _get_tag N/A repo N/A repo name N/A False N/A _failhard N/A N/A N/A N/A N/A 
    Fatal fileserver configuration issue, raise an exception
     N/A N/A FileserverConfigError Failed to load hg fileserver backend N/A init N/A N/A N/A N/A N/A 
    Return a list of hglib objects for the various hgfs remotes
     N/A bp_ N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs N/A new_remote False N/A repos N/A N/A per_remote_defaults N/A N/A param PER_REMOTE_OVERRIDES N/A N/A N/A per_remote_defaults N/A param N/A N/A six text_type N/A __opts__ N/A N/A N/A hgfs_{0} format param N/A remote N/A __opts__ N/A hgfs_remotes N/A N/A repo_conf N/A N/A copy deepcopy per_remote_defaults N/A N/A isinstance remote dict N/A N/A repo_url N/A next N/A iter remote N/A per_remote_conf N/A dict N/A N/A key N/A N/A six text_type val N/A N/A key val N/A N/A six iteritems N/A N/A N/A salt utils repack_dictlist N/A remote N/A repo_url N/A N/A per_remote_conf N/A N/A N/A N/A log error N/A N/A Invalid per-remote configuration for hgfs remote {0}. If no per-remote parameters are being specified, there may be a trailing colon after the URL, which should be removed. Check the master configuration file. format repo_url N/A N/A _failhard N/A branch_method N/A N/A per_remote_conf get branch_method N/A per_remote_defaults N/A branch_method N/A N/A branch_method VALID_BRANCH_METHODS N/A N/A N/A N/A log error N/A N/A Invalid branch_method '{0}' for remote {1}. Valid branch methods are: {2}. This remote will be ignored. format branch_method repo_url N/A N/A ,  join VALID_BRANCH_METHODS N/A N/A _failhard N/A per_remote_errors False N/A param N/A x N/A x per_remote_conf N/A x PER_REMOTE_OVERRIDES N/A N/A N/A N/A log error N/A N/A Invalid configuration parameter '{0}' for remote {1}. Valid parameters are: {2}. See the documentation for further information. format param repo_url N/A N/A ,  join PER_REMOTE_OVERRIDES N/A per_remote_errors True N/A per_remote_errors N/A N/A N/A _failhard N/A N/A N/A repo_conf update per_remote_conf N/A N/A repo_url remote N/A N/A N/A isinstance repo_url N/A six string_types N/A N/A N/A N/A log error N/A N/A Invalid hgfs remote {0}. Remotes must be strings, you may need to enclose the URL in quotes format repo_url N/A N/A _failhard N/A N/A N/A N/A repo_conf N/A mountpoint N/A N/A N/A N/A salt utils url strip_proto N/A repo_conf N/A mountpoint N/A N/A N/A TypeError N/A N/A N/A hash_type N/A getattr hashlib N/A N/A __opts__ get hash_type md5 N/A repo_hash N/A N/A N/A hash_type repo_url hexdigest N/A rp_ N/A N/A N/A os path join bp_ repo_hash N/A N/A N/A N/A N/A os path isdir rp_ N/A N/A N/A N/A os makedirs rp_ N/A N/A N/A N/A os listdir rp_ N/A N/A N/A N/A hglib init rp_ N/A new_remote True N/A N/A N/A repo N/A N/A hglib open rp_ N/A N/A N/A N/A N/A hglib error ServerError N/A N/A N/A N/A log error N/A N/A Cache path {0} (corresponding remote: {1}) exists but is not a valid mercurial repository. You will need to manually delete this directory on the master to continue to use this hgfs remote. format rp_ repo_url N/A N/A _failhard N/A N/A Exception N/A exc N/A N/A N/A N/A log error N/A N/A Exception '{0}' encountered while initializing hgfs remote {1} format exc repo_url N/A N/A _failhard N/A N/A N/A refs N/A N/A repo config names paths N/A N/A N/A N/A N/A hglib error CommandError N/A N/A refs None N/A N/A refs N/A N/A hgconfpath N/A N/A N/A os path join rp_ .hg hgrc N/A N/A N/A N/A salt utils fopen hgconfpath w+ hgconfig N/A N/A N/A N/A hgconfig write [paths]
 N/A N/A N/A hgconfig write N/A N/A default = {0}
 format repo_url N/A N/A N/A repo_conf update N/A repo url hash cachedir lockfile repo repo_url repo_hash rp_ N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs N/A N/A {0}.update.lk format repo_hash N/A N/A N/A repos append repo_conf N/A N/A N/A repo close N/A new_remote N/A N/A remote_map N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs/remote_map.txt N/A N/A N/A N/A N/A N/A salt utils fopen remote_map w+ fp_ N/A N/A timestamp N/A N/A N/A N/A datetime now strftime %d %b %Y %H:%M:%S.%f N/A N/A N/A fp_ write N/A N/A # hgfs_remote map as of {0}
 format timestamp N/A repo repos N/A N/A N/A N/A fp_ write N/A N/A {0} = {1}
 format N/A repo N/A hash N/A repo N/A url N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A log info N/A N/A Wrote new hgfs_remote map to {0} format remote_map N/A repos N/A _clear_old_remotes N/A N/A N/A N/A N/A 
    Remove cache directories for remotes no longer configured
     N/A bp_ N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs N/A N/A N/A cachedir_ls N/A N/A os listdir bp_ N/A N/A N/A OSError N/A N/A cachedir_ls N/A N/A repos N/A init N/A repo repos N/A N/A N/A N/A N/A N/A cachedir_ls remove N/A repo N/A hash N/A N/A N/A ValueError N/A N/A N/A to_remove N/A N/A item cachedir_ls N/A N/A N/A item N/A hash refs N/A N/A N/A path N/A N/A N/A os path join bp_ item N/A N/A N/A N/A os path isdir path N/A N/A N/A N/A to_remove append path N/A failed N/A N/A to_remove N/A N/A rdir to_remove N/A N/A N/A N/A N/A N/A shutil rmtree rdir N/A N/A N/A OSError N/A exc N/A N/A N/A N/A log error N/A N/A Unable to remove old hgfs remote cachedir {0}: {1} format rdir exc N/A N/A N/A failed append rdir N/A N/A N/A N/A log debug N/A N/A hgfs removed old cachedir {0} format rdir N/A fdir failed N/A N/A N/A N/A to_remove remove fdir N/A N/A N/A bool to_remove repos N/A clear_cache N/A N/A N/A N/A N/A 
    Completely clear hgfs cache
     N/A fsb_cachedir N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs N/A list_cachedir N/A N/A N/A os path join N/A __opts__ N/A cachedir file_lists/hgfs N/A errors N/A N/A rdir N/A fsb_cachedir list_cachedir N/A N/A N/A N/A N/A os path exists rdir N/A N/A N/A N/A N/A N/A shutil rmtree rdir N/A N/A N/A OSError N/A exc N/A N/A N/A N/A errors append N/A N/A Unable to delete {0}: {1} format rdir exc N/A errors N/A clear_lock N/A N/A remote N/A None N/A N/A 
    Clear update.lk

    ``remote`` can either be a dictionary containing repo configuration
    information, or a pattern. If the latter, then remotes for which the URL
    matches the pattern will be locked.
     _do_clear_lock N/A N/A repo N/A N/A _add_error N/A N/A errlist repo exc N/A N/A N/A msg N/A N/A Unable to remove update lock for {0} ({1}): {2}  format N/A repo N/A url N/A repo N/A lockfile exc N/A N/A N/A log debug msg N/A N/A N/A errlist append msg N/A N/A success N/A N/A failed N/A N/A N/A N/A N/A os path exists N/A repo N/A lockfile N/A N/A N/A N/A N/A N/A os remove N/A repo N/A lockfile N/A N/A N/A OSError N/A exc N/A N/A N/A N/A exc errno N/A errno EISDIR N/A N/A N/A N/A N/A N/A shutil rmtree N/A repo N/A lockfile N/A N/A N/A OSError N/A exc N/A N/A N/A _add_error failed repo exc N/A N/A N/A _add_error failed repo exc N/A N/A msg N/A N/A Removed lock for {0} format N/A repo N/A url N/A N/A N/A log debug msg N/A N/A N/A success append msg N/A N/A success failed N/A N/A N/A isinstance remote dict N/A N/A N/A _do_clear_lock remote N/A cleared N/A N/A errors N/A N/A repo N/A init N/A N/A remote N/A N/A N/A N/A N/A N/A N/A fnmatch fnmatch N/A repo N/A url remote N/A N/A N/A N/A N/A TypeError N/A N/A N/A N/A N/A fnmatch fnmatch N/A repo N/A url N/A N/A six text_type remote N/A N/A N/A N/A success failed N/A _do_clear_lock repo N/A N/A N/A cleared extend success N/A N/A N/A errors extend failed N/A N/A cleared errors N/A lock N/A N/A remote N/A None N/A N/A 
    Place an update.lk

    ``remote`` can either be a dictionary containing repo configuration
    information, or a pattern. If the latter, then remotes for which the URL
    matches the pattern will be locked.
     _do_lock N/A N/A repo N/A N/A N/A success N/A N/A failed N/A N/A N/A N/A N/A N/A os path exists N/A repo N/A lockfile N/A N/A N/A N/A N/A N/A N/A salt utils fopen N/A repo N/A lockfile w+ fp_ N/A N/A N/A N/A fp_ write N/A N/A N/A N/A IOError OSError N/A exc N/A N/A msg N/A N/A Unable to set update lock for {0} ({1}): {2}  format N/A repo N/A url N/A repo N/A lockfile exc N/A N/A N/A log debug msg N/A N/A N/A failed append msg N/A N/A msg N/A N/A Set lock for {0} format N/A repo N/A url N/A N/A N/A log debug msg N/A N/A N/A success append msg N/A N/A success failed N/A N/A N/A isinstance remote dict N/A N/A N/A _do_lock remote N/A locked N/A N/A errors N/A N/A repo N/A init N/A N/A remote N/A N/A N/A N/A N/A N/A N/A fnmatch fnmatch N/A repo N/A url remote N/A N/A N/A N/A N/A TypeError N/A N/A N/A N/A N/A fnmatch fnmatch N/A repo N/A url N/A N/A six text_type remote N/A N/A N/A N/A success failed N/A _do_lock repo N/A N/A N/A locked extend success N/A N/A N/A errors extend failed N/A N/A locked errors N/A update N/A N/A N/A N/A N/A 
    Execute an hg pull on all of the repos
     N/A data N/A changed backend False hgfs N/A N/A N/A data N/A changed repos N/A _clear_old_remotes N/A repo repos N/A N/A N/A N/A N/A os path exists N/A repo N/A lockfile N/A N/A N/A N/A log warning N/A N/A Update lockfile is present for hgfs remote {0}, skipping. If this warning persists, it is possible that the update process was interrupted. Removing {1} or running 'salt-run fileserver.clear_lock hgfs' will allow updates to continue for this remote. format N/A repo N/A url N/A repo N/A lockfile N/A N/A N/A _ errors N/A lock repo N/A errors N/A N/A N/A N/A log error N/A N/A Unable to set update lock for hgfs remote {0}, skipping. format N/A repo N/A url N/A N/A N/A N/A log debug N/A N/A hgfs is fetching from {0} format N/A repo N/A url N/A N/A N/A N/A repo N/A repo open N/A curtip N/A N/A N/A repo N/A repo tip N/A N/A N/A N/A N/A N/A repo N/A repo pull N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log error N/A N/A Exception {0} caught while updating hgfs remote {1} format exc N/A repo N/A url exc_info_on_loglevel N/A logging DEBUG N/A N/A newtip N/A N/A N/A repo N/A repo tip N/A N/A N/A curtip N/A 1 N/A newtip N/A 1 N/A N/A N/A data N/A changed True N/A N/A N/A N/A repo N/A repo close N/A N/A clear_lock repo N/A env_cache N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs/envs.p N/A N/A N/A N/A N/A data get changed False True N/A N/A N/A N/A os path isfile env_cache N/A N/A env_cachedir N/A N/A N/A os path dirname env_cache N/A N/A N/A N/A N/A os path exists env_cachedir N/A N/A N/A N/A os makedirs env_cachedir N/A new_envs N/A envs ignore_cache True N/A serial N/A N/A N/A salt payload Serial __opts__ N/A N/A N/A N/A salt utils fopen env_cache w+ fp_ N/A N/A N/A N/A fp_ write N/A N/A serial dumps new_envs N/A N/A N/A log trace N/A N/A Wrote env cache data to {0} format env_cache N/A N/A N/A __opts__ get fileserver_events False N/A N/A event N/A N/A N/A N/A salt utils event get_event master N/A __opts__ N/A sock_dir N/A __opts__ N/A transport opts __opts__ listen False N/A N/A N/A event fire_event data N/A tagify N/A hgfs update prefix fileserver N/A N/A N/A N/A N/A N/A salt fileserver reap_fileserver_cache_dir N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs/hash find_file N/A N/A N/A N/A IOError OSError N/A N/A N/A _env_is_exposed N/A N/A env N/A N/A N/A 
    Check if an environment is exposed by comparing it against a whitelist and
    blacklist.
     N/A N/A N/A N/A salt utils check_whitelist_blacklist env whitelist N/A __opts__ N/A hgfs_env_whitelist blacklist N/A __opts__ N/A hgfs_env_blacklist N/A envs N/A N/A ignore_cache N/A False N/A N/A 
    Return a list of refs that can be used as environments
     N/A N/A ignore_cache N/A N/A env_cache N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs/envs.p N/A cache_match N/A N/A N/A salt fileserver check_env_cache __opts__ env_cache N/A N/A cache_match None N/A N/A cache_match N/A ret N/A set N/A repo N/A init N/A N/A N/A N/A N/A repo N/A repo open N/A N/A N/A repo N/A branch_method N/A branches mixed N/A N/A branch N/A _all_branches N/A repo N/A repo N/A N/A branch_name N/A branch N/A 0 N/A N/A branch_name N/A repo N/A base N/A N/A branch_name base N/A N/A N/A ret add branch_name N/A N/A N/A repo N/A branch_method N/A bookmarks mixed N/A N/A bookmark N/A _all_bookmarks N/A repo N/A repo N/A N/A bookmark_name N/A bookmark N/A 0 N/A N/A bookmark_name N/A repo N/A base N/A N/A bookmark_name base N/A N/A N/A ret add bookmark_name N/A N/A N/A ret update N/A N/A x N/A 0 N/A x N/A _all_tags N/A repo N/A repo N/A N/A N/A N/A repo N/A repo close N/A N/A x N/A x N/A sorted ret N/A _env_is_exposed x N/A find_file N/A N/A path tgt_env N/A base kwargs N/A N/A 
    Find the first file to match the path and ref, read the file out of hg
    and send the path to the newly cached file
     N/A fnd N/A path rel N/A N/A N/A N/A N/A os path isabs path N/A tgt_env N/A envs N/A N/A fnd N/A dest N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs/refs tgt_env path N/A hashes_glob N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs/hash tgt_env N/A N/A {0}.hash.* format path N/A blobshadest N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs/hash tgt_env N/A N/A {0}.hash.blob_sha1 format path N/A lk_fn N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs/hash tgt_env N/A N/A {0}.lk format path N/A destdir N/A N/A N/A os path dirname dest N/A hashdir N/A N/A N/A os path dirname blobshadest N/A N/A N/A N/A N/A os path isdir destdir N/A N/A N/A N/A N/A N/A os makedirs destdir N/A N/A N/A OSError N/A N/A N/A N/A os remove destdir N/A N/A N/A os makedirs destdir N/A N/A N/A N/A N/A os path isdir hashdir N/A N/A N/A N/A N/A N/A os makedirs hashdir N/A N/A N/A OSError N/A N/A N/A N/A os remove hashdir N/A N/A N/A os makedirs hashdir N/A repo N/A init N/A N/A N/A N/A repo N/A mountpoint N/A N/A N/A path startswith N/A N/A repo N/A mountpoint N/A N/A os path sep N/A N/A N/A repo_path N/A N/A N/A path N/A N/A len N/A repo N/A mountpoint lstrip N/A N/A os path sep N/A N/A repo N/A root N/A N/A repo_path N/A N/A N/A os path join N/A repo N/A root repo_path N/A N/A N/A N/A repo N/A repo open N/A ref N/A _get_ref repo tgt_env N/A N/A ref N/A N/A N/A N/A N/A repo N/A repo close N/A N/A N/A N/A N/A salt fileserver wait_lock lk_fn dest N/A N/A N/A N/A N/A os path isfile blobshadest N/A N/A N/A os path isfile dest N/A N/A N/A N/A N/A salt utils fopen blobshadest r fp_ N/A N/A sha N/A N/A fp_ read N/A N/A sha N/A ref N/A 2 N/A N/A N/A fnd N/A rel path N/A N/A fnd N/A path dest N/A N/A N/A N/A repo N/A repo close N/A fnd N/A N/A N/A N/A N/A N/A repo N/A repo cat N/A N/A N/A path:{0} format repo_path rev N/A ref N/A 2 output dest N/A N/A N/A N/A N/A hglib error CommandError N/A N/A N/A N/A N/A repo N/A repo close N/A N/A N/A N/A N/A salt utils fopen lk_fn w+ fp_ N/A N/A N/A N/A fp_ write N/A filename N/A N/A glob glob hashes_glob N/A N/A N/A N/A N/A N/A os remove filename N/A N/A N/A Exception N/A N/A N/A N/A N/A N/A salt utils fopen blobshadest w+ fp_ N/A N/A N/A N/A fp_ write N/A ref N/A 2 N/A N/A N/A N/A N/A os remove lk_fn N/A N/A N/A N/A OSError IOError N/A N/A N/A N/A fnd N/A rel path N/A N/A fnd N/A path dest N/A N/A fnd N/A stat N/A list N/A N/A os stat dest N/A N/A N/A N/A repo N/A repo close N/A fnd N/A fnd N/A serve_file N/A N/A load fnd N/A N/A N/A 
    Return a chunk from a file based on the data received
     N/A N/A env load N/A N/A N/A N/A N/A salt utils warn_until Oxygen Parameter 'env' has been detected in the argument list.  This parameter is no longer used and has been replaced by 'saltenv' as of Salt Carbon.  This warning will be removed in Salt Oxygen. N/A N/A N/A load pop env N/A ret N/A data dest N/A N/A N/A all N/A N/A x load N/A x N/A path loc saltenv N/A N/A ret N/A N/A N/A fnd N/A path N/A N/A ret N/A N/A ret N/A dest N/A fnd N/A rel N/A gzip N/A N/A load get gzip None N/A N/A N/A N/A salt utils fopen N/A fnd N/A path rb fp_ N/A N/A N/A N/A fp_ seek N/A load N/A loc N/A data N/A N/A fp_ read N/A __opts__ N/A file_buffer_size N/A N/A gzip data N/A N/A data N/A N/A N/A N/A salt utils gzip_util compress data gzip N/A N/A ret N/A gzip gzip N/A N/A ret N/A data data N/A ret N/A file_hash N/A N/A load fnd N/A N/A N/A 
    Return a file hash, the hash type is set in the master config file
     N/A N/A env load N/A N/A N/A N/A N/A salt utils warn_until Oxygen Parameter 'env' has been detected in the argument list.  This parameter is no longer used and has been replaced by 'saltenv' as of Salt Carbon.  This warning will be removed in Salt Oxygen. N/A N/A N/A load pop env N/A N/A N/A all N/A N/A x load N/A x N/A path saltenv N/A N/A N/A ret N/A hash_type N/A __opts__ N/A hash_type N/A relpath N/A fnd N/A rel N/A path N/A fnd N/A path N/A hashdest N/A N/A N/A os path join N/A __opts__ N/A cachedir hgfs/hash N/A load N/A saltenv N/A N/A {0}.hash.{1} format relpath N/A __opts__ N/A hash_type N/A N/A N/A N/A N/A os path isfile hashdest N/A N/A N/A ret N/A hsum N/A N/A N/A salt utils get_hash path N/A __opts__ N/A hash_type N/A N/A N/A N/A salt utils fopen hashdest w+ fp_ N/A N/A N/A N/A fp_ write N/A ret N/A hsum N/A ret N/A N/A N/A N/A N/A salt utils fopen hashdest rb fp_ N/A N/A N/A ret N/A hsum N/A N/A fp_ read N/A ret N/A _file_lists N/A N/A load form N/A N/A N/A 
    Return a dict containing the file lists for files and dirs
     N/A N/A env load N/A N/A N/A N/A N/A salt utils warn_until Oxygen Parameter 'env' has been detected in the argument list.  This parameter is no longer used and has been replaced by 'saltenv' as of Salt Carbon.  This warning will be removed in Salt Oxygen. N/A N/A N/A load pop env N/A list_cachedir N/A N/A N/A os path join N/A __opts__ N/A cachedir file_lists/hgfs N/A N/A N/A N/A N/A os path isdir list_cachedir N/A N/A N/A N/A N/A N/A os makedirs list_cachedir N/A N/A N/A N/A os error N/A N/A N/A N/A log critical N/A N/A Unable to make cachedir {0} format list_cachedir N/A N/A N/A list_cache N/A N/A N/A os path join list_cachedir N/A N/A {0}.p format N/A load N/A saltenv N/A w_lock N/A N/A N/A os path join list_cachedir N/A N/A .{0}.w format N/A load N/A saltenv N/A N/A cache_match refresh_cache save_cache N/A N/A N/A salt fileserver check_file_list_cache __opts__ form list_cache w_lock N/A N/A cache_match None N/A N/A cache_match N/A refresh_cache N/A N/A ret N/A N/A N/A ret N/A files N/A _get_file_list load N/A N/A ret N/A dirs N/A _get_dir_list load N/A save_cache N/A N/A N/A N/A N/A salt fileserver write_file_list_cache __opts__ ret list_cache w_lock N/A N/A N/A ret get form N/A N/A N/A N/A file_list N/A N/A load N/A N/A N/A 
    Return a list of all files on the file server in a specified environment
     N/A N/A _file_lists load files N/A _get_file_list N/A N/A load N/A N/A N/A 
    Get a list of all files on the file server in a specified environment
     N/A N/A env load N/A N/A N/A N/A N/A salt utils warn_until Oxygen Parameter 'env' has been detected in the argument list.  This parameter is no longer used and has been replaced by 'saltenv' as of Salt Carbon.  This warning will be removed in Salt Oxygen. N/A N/A N/A load pop env N/A N/A N/A saltenv load N/A N/A load N/A saltenv N/A envs N/A N/A N/A N/A ret N/A set N/A repo N/A init N/A N/A N/A N/A N/A repo N/A repo open N/A ref N/A _get_ref repo N/A load N/A saltenv N/A ref N/A N/A manifest N/A N/A N/A repo N/A repo manifest rev N/A ref N/A 1 N/A tup manifest N/A N/A relpath N/A N/A N/A os path relpath N/A tup N/A 4 N/A repo N/A root N/A N/A N/A N/A relpath startswith ../ N/A N/A N/A N/A ret add N/A N/A N/A os path join N/A repo N/A mountpoint relpath N/A N/A N/A N/A repo N/A repo close N/A N/A sorted ret N/A file_list_emptydirs N/A N/A load N/A N/A N/A 
    Return a list of all empty directories on the master
     N/A N/A N/A dir_list N/A N/A load N/A N/A N/A 
    Return a list of all directories on the master
     N/A N/A _file_lists load dirs N/A _get_dir_list N/A N/A load N/A N/A N/A 
    Get a list of all directories on the master
     N/A N/A env load N/A N/A N/A N/A N/A salt utils warn_until Oxygen Parameter 'env' has been detected in the argument list.  This parameter is no longer used and has been replaced by 'saltenv' as of Salt Carbon.  This warning will be removed in Salt Oxygen. N/A N/A N/A load pop env N/A N/A N/A saltenv load N/A N/A load N/A saltenv N/A envs N/A N/A N/A N/A ret N/A set N/A repo N/A init N/A N/A N/A N/A N/A repo N/A repo open N/A ref N/A _get_ref repo N/A load N/A saltenv N/A ref N/A N/A manifest N/A N/A N/A repo N/A repo manifest rev N/A ref N/A 1 N/A tup manifest N/A N/A filepath N/A tup N/A 4 N/A split N/A N/A filepath rsplit / 1 N/A N/A N/A len split 1 N/A N/A relpath N/A N/A N/A os path relpath N/A split N/A 0 N/A repo N/A root N/A N/A relpath . N/A N/A N/A N/A N/A relpath startswith ../ N/A N/A N/A N/A ret add N/A N/A N/A os path join N/A repo N/A mountpoint relpath N/A split N/A N/A N/A split N/A 0 rsplit / 1 N/A N/A N/A N/A repo N/A repo close N/A N/A repo N/A mountpoint N/A N/A N/A N/A ret add N/A repo N/A mountpoint N/A N/A sorted ret N/A