Module Import alias Import alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str attr attr Slice Num attr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Str attr attr Slice Num Return TupleLoad NameLoad NameLoad handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameLoad Str Str Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameLoad Str Str Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore BinOpSub NameLoad NameLoad Assert NameLoad Return BinOpMod Str TupleLoad NameLoad NameLoad BinOpAdd NameLoad NameLoad handlers ExceptHandler body Return NameLoad decorator_list
N/A N/A os N/A subprocess version __version__ get_head N/A N/A repo_path N/A N/A N/A Get (branch, commit) from HEAD of a git repo. N/A N/A N/A ref N/A N/A N/A N/A N/A N/A N/A N/A open N/A N/A N/A os path join repo_path .git HEAD r read strip N/A 5 split / N/A branch N/A ref N/A -1 N/A commit N/A N/A N/A N/A N/A N/A open N/A N/A N/A os path join repo_path .git ref r read strip N/A 7 N/A N/A branch commit N/A N/A N/A N/A None N/A get_version N/A N/A repo_path N/A N/A N/A N/A N/A version N/A N/A __version__ split . N/A N/A major minor cn N/A N/A int i N/A i version N/A p N/A N/A subprocess Popen N/A git --git-dir N/A N/A N/A os path join repo_path .git --work-tree repo_path rev-list HEAD --count stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A raw err N/A N/A p communicate N/A c_head N/A int N/A N/A raw decode ascii N/A q N/A N/A subprocess Popen N/A git --git-dir N/A N/A N/A os path join repo_path .git --work-tree repo_path rev-list master --count stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A raw err N/A N/A q communicate N/A c_master N/A int N/A N/A raw decode ascii N/A cc N/A c_head c_master N/A cc N/A N/A %s.%s.%s N/A major minor N/A cn cc N/A N/A N/A N/A __version__ N/A