Module Expr Str Import alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias Assign NameStore CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num Num If NameLoad body Import alias identifier Import alias identifier Assign NameStore NameLoad Import alias Assign NameStore Call NameLoad NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr NameLoad Raise NameLoad decorator_list orelse Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Delete NameDel orelse If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Exec Str decorator_list Expr Call NameLoad Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq SubscriptLoad NameLoad Slice Num Str body TryExcept body If CompareEq SubscriptLoad NameLoad Slice Num Str body Return Call NameLoad Call NameLoad SubscriptLoad NameLoad Slice Num Num Num orelse Return Call NameLoad Call NameLoad SubscriptLoad NameLoad Slice Num Num handlers ExceptHandler type NameLoad body Pass orelse TryExcept body If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Assign NameStore Str orelse If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Assign NameStore Str orelse If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Assign NameStore Str orelse Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Slice Num Num handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With AttributeLoad AttributeLoad NameLoad attr attr body If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Num orelse If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpAdd Call NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body If CompareIs AttributeLoad NameLoad attr NameLoad body AugAssignAdd AttributeStore NameLoad attr Num Return While NameLoad body If CompareIs AttributeLoad NameLoad attr NameLoad body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad NameLoad attr body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Return orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Num Return If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpSub NameLoad Call NameLoad If CompareLtE NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpAdd Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body If CompareIs AttributeLoad NameLoad attr NameLoad body AugAssignAdd AttributeStore NameLoad attr Num Return orelse If CompareIn NameLoad AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str orelse Raise Call NameLoad Str Assign NameStore NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While NameLoad body If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Return orelse If CompareIs SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Return If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpSub NameLoad Call NameLoad If CompareLtE NameLoad Num body If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body If CompareIs AttributeLoad NameLoad attr NameLoad body AugAssignSub AttributeStore NameLoad attr Num If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareIn NameLoad AttributeLoad NameLoad attr body AugAssignSub SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Raise Call NameLoad Str finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TryFinally body Expr Yield finalbody Expr Call AttributeLoad NameLoad attr decorator_list NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TryFinally body Expr Yield finalbody Expr Call AttributeLoad NameLoad attr decorator_list NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With AttributeLoad NameLoad attr body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With AttributeLoad NameLoad attr body While UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
Copyright (c) 2013 Timon Wong

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
 N/A sys N/A re N/A copy threading Condition Lock current_thread contextlib contextmanager time time N/A PY3K N/A N/A sys version_info N/A 3 0 0 N/A PY3K N/A N/A html.entities htmlentitydefs N/A _thread thread N/A unichr chr N/A builtins N/A exec_ N/A getattr builtins exec reraise N/A N/A tp value tb N/A None N/A N/A N/A N/A value __traceback__ tb N/A N/A N/A N/A value with_traceback tb N/A value N/A N/A N/A htmlentitydefs N/A thread exec_ N/A N/A _code_ _globs_ _locs_ N/A None None N/A N/A Execute code in a namespace. N/A N/A _globs_ None N/A N/A frame N/A N/A sys _getframe 1 N/A _globs_ N/A frame f_globals N/A N/A _locs_ None N/A N/A _locs_ N/A frame f_locals N/A frame N/A N/A N/A _locs_ None N/A N/A _locs_ _globs_ N/A exec _code_ in _globs_, _locs_ N/A N/A N/A exec_ def reraise(tp, value, tb=None):
    raise tp, value, tb
 entities_unescape N/A N/A text N/A N/A fixup N/A N/A m N/A N/A N/A text N/A N/A m group 0 N/A N/A N/A text N/A 2 &# N/A N/A N/A N/A N/A N/A text N/A 3 &#x N/A N/A N/A unichr N/A int N/A text N/A 3 -1 16 N/A N/A N/A unichr N/A int N/A text N/A 2 -1 N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A N/A N/A text N/A 1 -1 amp N/A N/A text &amp;amp; N/A N/A N/A N/A text N/A 1 -1 gt N/A N/A text &amp;gt; N/A N/A N/A N/A text N/A 1 -1 lt N/A N/A text &amp;lt; N/A N/A text N/A unichr N/A N/A htmlentitydefs name2codepoint N/A N/A text N/A 1 -1 N/A N/A N/A KeyError N/A N/A N/A text N/A N/A N/A N/A re sub &#?\w+; fixup text N/A Singleton N/A object N/A __init__ N/A N/A self decorated N/A N/A N/A N/A decorated __lock_obj N/A N/A thread allocate_lock N/A N/A decorated __instance None N/A N/A self __decorated decorated N/A instance N/A N/A self N/A N/A N/A N/A N/A self __decorated __lock_obj N/A N/A N/A N/A N/A self __decorated __instance None N/A N/A N/A N/A self __decorated __instance N/A N/A self __decorated N/A N/A N/A self __decorated __instance N/A __call__ N/A N/A self N/A N/A N/A N/A TypeError Singletons must be accessed through `Instance()`. N/A __instancecheck__ N/A N/A self inst N/A N/A N/A N/A isinstance inst N/A self __decorated N/A N/A RWLock N/A object N/A __init__ N/A N/A self lock N/A None N/A N/A Initialize this read-write lock. N/A N/A lock None N/A N/A N/A self __condition N/A Condition N/A Lock N/A N/A N/A self __condition N/A Condition lock N/A N/A self __writer None N/A N/A self __upgradewritercount 0 N/A N/A self __pendingwriters N/A N/A N/A self __readers N/A N/A acquireRead N/A N/A self blocking timeout N/A True None N/A N/A Acquire a read lock for the current thread, waiting at most
        timeout seconds or doing a non-blocking check in case timeout is <= 0.

        In case timeout is None, the call to acquireRead blocks until the
        lock request can be serviced.

        In case the timeout expires before the lock could be serviced, a
        RuntimeError is thrown. N/A N/A blocking N/A N/A endtime -1 N/A N/A N/A timeout None N/A N/A endtime N/A N/A time timeout N/A N/A endtime None N/A me N/A current_thread N/A N/A N/A N/A self __condition acquire N/A N/A N/A N/A N/A self __writer me N/A N/A N/A self __writercount 1 N/A N/A True N/A N/A N/A N/A self __writer None N/A N/A N/A N/A self __upgradewritercount N/A self __pendingwriters N/A N/A N/A me N/A self __readers N/A N/A N/A N/A self __readers N/A me 1 N/A N/A N/A N/A N/A self __readers N/A me N/A N/A N/A N/A self __readers get me 0 1 N/A N/A N/A timeout None N/A N/A remaining N/A endtime N/A time N/A N/A remaining 0 N/A N/A N/A RuntimeError Acquiring read lock timed out N/A N/A N/A N/A self __condition wait remaining N/A N/A N/A N/A N/A self __condition wait N/A N/A N/A N/A N/A self __condition release N/A acquireWrite N/A N/A self timeout N/A None N/A N/A Acquire a write lock for the current thread, waiting at most
        timeout seconds or doing a non-blocking check in case timeout is <= 0.

        In case the write lock cannot be serviced due to the deadlock
        condition mentioned above, a ValueError is raised.

        In case timeout is None, the call to acquireWrite blocks until the
        lock request can be serviced.

        In case the timeout expires before the lock could be serviced, a
        RuntimeError is thrown. N/A N/A timeout None N/A N/A endtime N/A N/A time timeout N/A N/A me upgradewriter N/A N/A current_thread False N/A N/A N/A N/A self __condition acquire N/A N/A N/A N/A N/A self __writer me N/A N/A N/A self __writercount 1 N/A N/A N/A N/A me N/A self __readers N/A N/A N/A self __upgradewritercount N/A N/A N/A timeout None N/A N/A N/A RuntimeError Write lock upgrade would deadlock until timeout N/A N/A N/A ValueError Inevitable dead lock, denying write lock N/A upgradewriter True N/A N/A self __upgradewritercount N/A N/A N/A self __readers pop me N/A N/A N/A N/A N/A self __pendingwriters append me N/A True N/A N/A N/A N/A N/A self __readers N/A N/A self __writer None N/A N/A N/A self __upgradewritercount N/A N/A upgradewriter N/A N/A N/A self __writer me N/A N/A self __writercount N/A N/A self __upgradewritercount 1 N/A N/A self __upgradewritercount 0 N/A N/A N/A N/A N/A N/A self __pendingwriters N/A 0 me N/A N/A N/A self __writer me N/A N/A self __writercount 1 N/A N/A self __pendingwriters N/A N/A self __pendingwriters N/A 1 N/A N/A N/A timeout None N/A N/A remaining N/A endtime N/A time N/A N/A remaining 0 N/A N/A upgradewriter N/A N/A N/A N/A self __readers N/A me N/A self __upgradewritercount N/A N/A self __upgradewritercount 0 N/A N/A N/A N/A N/A self __pendingwriters remove me N/A N/A RuntimeError Acquiring write lock timed out N/A N/A N/A N/A self __condition wait remaining N/A N/A N/A N/A N/A self __condition wait N/A N/A N/A N/A N/A self __condition release N/A release N/A N/A self N/A N/A N/A Release the currently held lock.

        In case the current thread holds no lock, a ValueError is thrown. N/A me N/A current_thread N/A N/A N/A N/A self __condition acquire N/A N/A N/A N/A N/A self __writer me N/A N/A N/A self __writercount 1 N/A N/A N/A self __writercount N/A N/A N/A self __writer None N/A N/A N/A N/A self __condition notifyAll N/A N/A N/A me N/A self __readers N/A N/A N/A N/A self __readers N/A me 1 N/A N/A N/A N/A self __readers N/A me N/A N/A N/A N/A self __readers N/A me N/A N/A N/A self __readers N/A N/A N/A N/A N/A self __condition notifyAll N/A N/A N/A ValueError Trying to release unheld lock N/A N/A N/A N/A N/A self __condition release N/A readlock N/A N/A self N/A N/A N/A N/A N/A self acquireRead N/A N/A N/A N/A N/A N/A N/A N/A self release N/A property contextmanager writelock N/A N/A self N/A N/A N/A N/A N/A self acquireWrite N/A N/A N/A N/A N/A N/A N/A N/A self release N/A property contextmanager N/A Future N/A object N/A __init__ N/A N/A self func N/A args kwargs N/A N/A N/A self __done False N/A N/A self __result None N/A N/A self __cond N/A Condition N/A N/A self __func func N/A N/A self __args args N/A N/A self __kwargs kwargs N/A N/A self __except None N/A __call__ N/A N/A self N/A N/A N/A N/A self __cond N/A N/A N/A N/A N/A self __result N/A N/A self __func N/A self __args N/A self __kwargs N/A N/A N/A N/A N/A self __result None N/A N/A self __except N/A N/A sys exc_info N/A N/A self __done True N/A N/A N/A N/A self __cond notify N/A result N/A N/A self N/A N/A N/A N/A self __cond N/A N/A N/A N/A self __done N/A N/A N/A N/A N/A self __cond wait N/A N/A self __except N/A N/A exc N/A self __except N/A N/A reraise N/A exc N/A 0 N/A exc N/A 1 N/A exc N/A 2 N/A result N/A self __result N/A N/A N/A copy deepcopy result N/A N/A