Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad body 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 NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Call NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Break TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Assign NameStore ListLoad While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad Str Num NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareLt BinOpSub NameLoad AttributeLoad NameLoad attr BinOpMult Num Num body Return Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If CompareLt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str With NameLoad NameStore body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str If BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body With Call NameLoad NameLoad Str NameStore body While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Raise Expr Call AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A logging N/A os N/A os.path N/A subprocess N/A sys N/A json N/A hashlib N/A time N/A fcntl N/A LOG N/A N/A logging getLogger __name__ ClientLive N/A object N/A __init__ N/A N/A self hostname port username keyfile N/A review None None None N/A N/A N/A self hostname hostname N/A N/A self port port N/A N/A self username username N/A N/A self keyfile keyfile N/A _run_async N/A N/A self argv N/A N/A _preexec_fn N/A N/A N/A N/A N/A N/A N/A os setpgrp N/A N/A stdout N/A subprocess PIPE N/A stderr N/A subprocess PIPE N/A N/A N/A LOG debug N/A Running cmd %s N/A N/A join argv N/A sp N/A N/A subprocess Popen argv stdout stdout stderr stderr stdin None preexec_fn _preexec_fn N/A sp N/A _build_argv N/A N/A self cmdargv N/A N/A N/A argv N/A ssh N/A N/A N/A argv extend N/A -T -o BatchMode=yes -e none N/A N/A self port N/A N/A N/A N/A argv extend N/A -p N/A str N/A self port N/A N/A N/A self keyfile N/A N/A N/A os path isfile N/A self keyfile N/A N/A N/A N/A argv extend N/A -i N/A str N/A self keyfile N/A N/A N/A self username None N/A N/A N/A N/A argv extend N/A N/A %s@%s N/A N/A self username N/A self hostname N/A N/A N/A N/A argv extend N/A N/A self hostname N/A N/A N/A argv extend N/A gerrit N/A N/A N/A argv extend cmdargv N/A argv N/A _process N/A N/A self sp argv cb N/A N/A N/A True N/A N/A line N/A N/A N/A sp stdout readline N/A N/A line N/A N/A N/A N/A N/A dec N/A N/A json loads N/A N/A line decode UTF-8 N/A N/A N/A isinstance dec dict N/A N/A N/A TypeError N/A Expected decoded dict, not %s N/A type dec N/A N/A cb dec N/A N/A N/A Exception N/A N/A N/A N/A LOG exception Failure processing %s line N/A N/A N/A sp wait N/A N/A N/A sp returncode 0 N/A N/A lines N/A N/A True N/A N/A line N/A N/A N/A sp stderr readline N/A N/A line N/A N/A N/A N/A N/A lines append N/A N/A line decode UTF-8 N/A msg N/A N/A join lines N/A args N/A N/A join argv N/A N/A Exception N/A Error running command %s: %s N/A args msg N/A run N/A N/A self cmdargv cb N/A N/A N/A argv N/A N/A self _build_argv cmdargv N/A sp N/A N/A self _run_async argv N/A N/A N/A self _process sp argv cb N/A N/A ClientCachingLock N/A object N/A __init__ N/A N/A self lockfile N/A N/A N/A N/A self lockfile lockfile N/A __enter__ N/A N/A self N/A N/A N/A N/A self lockfh N/A open N/A self lockfile w N/A N/A N/A fcntl lockf N/A self lockfh N/A fcntl LOCK_EX N/A __exit__ N/A N/A self exc_type exc_val exc_tb N/A N/A N/A N/A N/A N/A N/A fcntl lockf N/A self lockfh N/A fcntl LOCK_UN N/A N/A N/A N/A self lockfh close N/A N/A self lockfh None N/A N/A N/A N/A N/A N/A LOG exception N/A could not release lock on %s N/A self lockfile N/A N/A ClientCaching N/A ClientLive N/A __init__ N/A N/A self hostname port username keyfile cachedir cachelifetime refresh N/A review None None None cache 86400 False N/A N/A N/A N/A N/A super ClientCaching self __init__ hostname port username keyfile N/A N/A self cachedir cachedir N/A N/A self cachelifetime cachelifetime N/A N/A self lastpurge None N/A N/A self refresh refresh N/A N/A N/A N/A N/A os path exists N/A self cachedir N/A N/A N/A N/A os makedirs N/A self cachedir N/A _purge_cache_locked N/A N/A self N/A N/A N/A now N/A N/A time time N/A N/A N/A N/A self lastpurge None N/A N/A now N/A self lastpurge N/A 60 60 N/A N/A N/A N/A self lastpurge now N/A then N/A now N/A self cachelifetime N/A N/A N/A LOG debug N/A Looking for files in %s older than %d N/A N/A self cachedir then N/A file N/A N/A os listdir N/A self cachedir N/A N/A N/A file lock N/A N/A N/A filepath N/A N/A N/A os path join N/A self cachedir file N/A mtime N/A N/A N/A os path getmtime filepath N/A N/A N/A LOG debug N/A File %s has time %d N/A filepath mtime N/A N/A mtime then N/A N/A N/A N/A LOG info N/A Purging outdated cache %s filepath N/A N/A N/A os unlink filepath N/A _purge_cache N/A N/A self N/A N/A N/A lock N/A ClientCachingLock N/A N/A N/A os path join N/A self cachedir lock N/A N/A N/A LOG debug acquiring lock for cache N/A lock lock N/A N/A N/A N/A self _purge_cache_locked N/A run N/A N/A self cmdargv cb N/A N/A N/A N/A N/A self _purge_cache N/A argv N/A N/A self _build_argv cmdargv N/A args N/A N/A join argv N/A m N/A N/A hashlib sha256 N/A N/A N/A m update N/A N/A args encode UTF-8 N/A N/A N/A LOG debug N/A Finding cache for args '%s' args N/A file N/A N/A N/A N/A self cachedir / N/A N/A m hexdigest .json N/A N/A N/A N/A N/A N/A os path exists file N/A self refresh N/A N/A sp N/A N/A self _run_async argv N/A N/A N/A N/A open file wb f N/A N/A True N/A N/A line N/A N/A N/A sp stdout readline N/A N/A line N/A N/A N/A N/A N/A f write line N/A N/A N/A N/A N/A N/A os unlink file N/A N/A N/A N/A sp wait N/A N/A N/A sp returncode 0 N/A N/A N/A N/A os unlink file N/A lines N/A N/A True N/A N/A line N/A N/A N/A sp stderr readline N/A N/A line N/A N/A N/A N/A N/A lines append N/A N/A line decode UTF-8 N/A msg N/A N/A join lines N/A N/A Exception N/A Error running command %s: %s N/A args msg N/A sp N/A N/A self _run_async N/A cat file N/A N/A N/A self _process sp argv cb N/A N/A