Module ImportFrom alias Import alias alias FunctionDef arguments args defaults body Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Str ListLoad Str Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call NameLoad For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Expr Call NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Assign NameStore NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Assign NameStore NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Assign NameStore NameLoad If CompareEq NameLoad Str body Expr Call NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad Str attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num
N/A __future__ print_function N/A sys getopt display_help N/A N/A N/A N/A N/A N/A print #################################################################### N/A N/A print #                                                                  # N/A N/A print # File: portable.py                                                # N/A N/A print # Description:                                                     # N/A N/A print #   - search and replace within a binary file                      # N/A N/A print #                                                                  # N/A N/A print # Parameters:                                                      # N/A N/A print #   -f, --file    :  target file                                   # N/A N/A print #   -s, --search  :  term to search for                            # N/A N/A print #                    default is "C:\Python"                        # N/A N/A print #   -r, --replace :  replace with this                             # N/A N/A print #                    default is ".."                               # N/A N/A print #                                                                  # N/A N/A print # example:                                                         # N/A N/A print #  portable.py -f <target_file> -s <search_term> -r <replace_term> # N/A N/A print #                                                                  # N/A N/A print #################################################################### N/A N/A N/A sys exit 2 N/A main N/A N/A argv N/A N/A N/A target N/A search C:\Python27 N/A replace .. N/A N/A N/A N/A opts args N/A N/A getopt getopt argv hf:s:r: N/A file= search= replace= N/A N/A N/A N/A getopt GetoptError N/A N/A N/A display_help N/A N/A opt arg opts N/A N/A N/A opt -h N/A N/A N/A display_help N/A N/A N/A opt N/A -f --file N/A N/A target arg N/A N/A N/A opt N/A -s --search N/A N/A search arg N/A N/A N/A opt N/A -r --replace N/A N/A replace arg N/A N/A target N/A N/A N/A display_help N/A f N/A N/A N/A open target rb read N/A f N/A N/A f replace search replace N/A f N/A N/A f replace N/A N/A search lower replace N/A N/A N/A N/A open target wb write f N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A N/A sys argv N/A 1