Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr If Call AttributeLoad NameLoad attr body Expr Call NameLoad If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Str Assign NameStore Call NameLoad keyword BinOpAdd Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr ListComp AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore AttributeLoad NameLoad attr decorator_list Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore ListComp NameLoad comprehension NameStore Call NameLoad NameLoad UnaryOpNot CompareIn NameLoad ListLoad Str Str Str Str Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd BinOpAdd Str Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str orelse Print AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr decorator_list Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore IfExp CompareEq AttributeLoad NameLoad attr Str Str Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str If CompareNotEq NameLoad Num body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str If CompareNotEq NameLoad Num body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str If CompareNotEq NameLoad Num body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str If CompareNotEq NameLoad Num body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str While NameLoad body TryExcept body Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue orelse Raise decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str orelse Expr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return Call NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad orelse If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Num CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr Index Num Return Call NameLoad NameLoad orelse Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return Call NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Lambda arguments args NameParam defaults BinOpMod Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Lambda arguments args NameParam defaults IfExp AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Str Lambda arguments args NameParam defaults IfExp AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Str Lambda arguments args NameParam defaults IfExp AttributeLoad NameLoad attr BinOpMod Str BinOpSub Num BinOpMult BinOpDiv Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str Lambda arguments args NameParam defaults IfExp AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str Str Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad AttributeLoad NameLoad attr attr body Return Str If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Str Return NameLoad If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Return Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Return Str Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr ListLoad Str Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults 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 defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore IfExp CompareEq AttributeLoad NameLoad attr Str Str Str Assign NameStore Dict Str Str BinOpAdd BinOpAdd Str NameLoad Str BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str Expr Call NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call NameLoad BinOpMod SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad handlers ExceptHandler body Assign NameStore Num If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad BinOpAdd AttributeLoad NameLoad attr Str orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr While BoolOpOr AttributeLoad NameLoad attr UnaryOpNot BoolOpAnd CompareEq AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad Print BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str orelse Print AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr
N/A N/A time N/A sys N/A errno os listdir os path os remove os access os W_OK WRITEABLE shutil copy subprocess call PIPE optparse OptionParser PyQt4.QtCore * PyQt4.QtGui * filesize * imghdr what determinetype Queue Queue ThreadPool ThreadPool multiprocessing cpu_count ui Ui_trimage N/A VERSION 1.0.5 StartQT4 N/A QMainWindow N/A __init__ N/A N/A self parent N/A None N/A N/A N/A N/A QWidget __init__ self parent N/A N/A self ui N/A Ui_trimage N/A N/A N/A N/A self ui setupUi self N/A N/A self showapp True N/A N/A self verbose True N/A N/A self imagelist N/A N/A N/A N/A QCoreApplication setOrganizationName Kilian Valkhof N/A N/A N/A QCoreApplication setOrganizationDomain trimage.org N/A N/A N/A QCoreApplication setApplicationName Trimage N/A N/A self settings N/A QSettings N/A N/A N/A self restoreGeometry N/A N/A N/A N/A N/A self settings value geometry toByteArray N/A N/A N/A self checkapps N/A N/A N/A quit N/A N/A hasattr QKeySequence Quit N/A N/A N/A self quit_shortcut N/A QShortcut N/A QKeySequence N/A QKeySequence Quit self N/A N/A N/A self quit_shortcut N/A QShortcut N/A QKeySequence Ctrl+Q self N/A N/A N/A N/A N/A self ui recompress setEnabled False N/A N/A self thread N/A Worker N/A N/A N/A QObject connect N/A N/A self ui addfiles N/A SIGNAL clicked() N/A self file_dialog N/A N/A N/A QObject connect N/A N/A self ui recompress N/A SIGNAL clicked() N/A self recompress_files N/A N/A N/A QObject connect N/A self quit_shortcut N/A SIGNAL activated() qApp N/A SLOT quit() N/A N/A N/A QObject connect N/A N/A self ui processedfiles N/A SIGNAL fileDropEvent N/A self file_drop N/A N/A N/A QObject connect N/A self thread N/A SIGNAL finished() N/A self update_table N/A N/A N/A QObject connect N/A self thread N/A SIGNAL terminated() N/A self update_table N/A N/A N/A QObject connect N/A self thread N/A SIGNAL updateUi N/A self update_table N/A N/A self compressing_icon N/A QIcon N/A QPixmap N/A N/A N/A self ui get_image pixmaps/compressing.gif N/A N/A N/A self commandline_options N/A N/A N/A N/A QSystemTrayIcon isSystemTrayAvailable N/A N/A self cli N/A N/A N/A self systemtray N/A Systray self N/A commandline_options N/A N/A self N/A N/A N/A N/A self cli False N/A Set up the command line options. N/A parser N/A OptionParser version N/A %prog  VERSION description GUI front-end to compress png and jpg images via optipng, advpng and jpegoptim N/A N/A N/A parser set_defaults verbose True N/A N/A N/A parser add_option -v --verbose action store_true dest verbose help Verbose mode (default) N/A N/A N/A parser add_option -q --quiet action store_false dest verbose help Quiet mode N/A N/A N/A parser add_option -f --file action store type string dest filename help compresses image and exit N/A N/A N/A parser add_option -d --directory action store type string dest directory help compresses images in directory and exit N/A N/A options args N/A N/A parser parse_args N/A N/A N/A options filename N/A options directory N/A N/A N/A N/A QObject connect N/A self thread N/A SIGNAL finished() quit N/A N/A self cli True N/A N/A options filename N/A N/A N/A N/A self file_from_cmd N/A N/A N/A options filename decode utf-8 N/A N/A options directory N/A N/A N/A N/A self dir_from_cmd N/A N/A N/A options directory decode utf-8 N/A N/A self verbose N/A options verbose N/A N/A 
    Input functions
     dir_from_cmd N/A N/A self directory N/A N/A N/A 
        Read the files in the directory and send all files to compress_file.
         N/A N/A self showapp False N/A dirpath N/A N/A path abspath directory N/A imagedir N/A listdir directory N/A filelist N/A N/A N/A path join dirpath image N/A image imagedir N/A N/A N/A self delegator filelist N/A file_from_cmd N/A N/A self image N/A N/A N/A Get the file and send it to compress_file N/A N/A self showapp False N/A filelist N/A N/A N/A path abspath image N/A N/A N/A self delegator filelist N/A file_drop N/A N/A self images N/A N/A N/A 
        Get a file from the drag and drop handler and send it to compress_file.
         N/A N/A N/A self delegator images N/A file_dialog N/A N/A self N/A N/A N/A Open a file dialog and send the selected images to compress_file. N/A fd N/A QFileDialog self N/A N/A N/A fd restoreState N/A N/A N/A N/A N/A self settings value fdstate toByteArray N/A directory N/A N/A N/A N/A N/A self settings value directory N/A QVariant toString N/A N/A N/A fd setDirectory directory N/A images N/A N/A fd getOpenFileNames self Select one or more image files to compress directory Image files (*.png *.jpg *.jpeg *.PNG *.JPG *.JPEG) N/A N/A N/A N/A self settings setValue fdstate N/A QVariant N/A N/A fd saveState N/A images N/A N/A N/A N/A N/A self settings setValue directory N/A QVariant N/A N/A path dirname N/A unicode N/A images N/A 0 N/A N/A N/A self delegator N/A N/A unicode fullpath N/A fullpath images N/A recompress_files N/A N/A self N/A N/A N/A Send each file in the current file list to compress_file again. N/A N/A N/A self delegator N/A N/A N/A row image fullpath N/A row N/A self imagelist N/A N/A 
    Compress functions
     delegator N/A N/A self images N/A N/A N/A 
        Receive all images, check them and send them to the worker thread.
         N/A delegatorlist N/A N/A fullpath images N/A N/A N/A N/A image N/A N/A N/A N/A i image N/A i N/A self imagelist N/A N/A N/A i image fullpath fullpath next N/A N/A image compressed N/A N/A N/A N/A image reset N/A N/A image recompression True N/A N/A N/A delegatorlist append image N/A N/A N/A StopIteration N/A N/A N/A N/A N/A path isdir fullpath N/A N/A N/A N/A self add_image fullpath delegatorlist N/A N/A N/A N/A self walk fullpath delegatorlist N/A N/A N/A self update_table N/A N/A N/A N/A self thread compress_file delegatorlist N/A self showapp N/A self verbose N/A self imagelist N/A walk N/A N/A self dir delegatorlist N/A N/A N/A 
        Walks a directory, and executes a callback on each file
         N/A dir N/A N/A path abspath dir N/A file N/A file N/A file N/A listdir dir N/A N/A file N/A . .. .svn .git .hg .bzr .cvs N/A N/A nfile N/A N/A path join dir file N/A N/A N/A path isdir nfile N/A N/A N/A N/A self walk nfile delegatorlist N/A N/A N/A N/A self add_image nfile delegatorlist N/A add_image N/A N/A self fullpath delegatorlist N/A N/A N/A 
        Adds an image file to the delegator list and update the tray and the title of the window
         N/A image N/A Image fullpath N/A N/A image valid N/A N/A N/A N/A delegatorlist append image N/A N/A N/A N/A self imagelist append N/A ImageRow image N/A self compressing_icon N/A N/A N/A N/A QSystemTrayIcon isSystemTrayAvailable N/A N/A self cli N/A N/A N/A N/A N/A N/A self systemtray trayIcon setToolTip N/A N/A Trimage image compressor ( N/A str N/A len N/A self imagelist  files) N/A N/A N/A self setWindowTitle N/A N/A Trimage image compressor ( N/A str N/A len N/A self imagelist  files) N/A N/A N/A sys stderr N/A [error] %s not a supported image file and/or not writeable N/A image fullpath N/A N/A 
    UI Functions
     update_table N/A N/A self N/A N/A N/A Update the table view with the latest file data. N/A tview N/A N/A self ui processedfiles N/A tmodel N/A TriTableModel self N/A self imagelist N/A Filename Old Size New Size Compressed N/A N/A N/A tview setModel tmodel N/A vh N/A N/A tview verticalHeader N/A N/A N/A vh setVisible False N/A hh N/A N/A tview horizontalHeader N/A N/A N/A hh setStretchLastSection True N/A nrows N/A len N/A self imagelist N/A row N/A range nrows N/A N/A N/A N/A tview setRowHeight row 25 N/A N/A N/A tview setColumnWidth 0 300 N/A N/A N/A self enable_recompress N/A N/A 
    Helper functions
     enable_recompress N/A N/A self N/A N/A N/A Enable the recompress button. N/A N/A N/A N/A N/A self ui recompress setEnabled True N/A N/A N/A N/A QSystemTrayIcon isSystemTrayAvailable N/A N/A self cli N/A N/A N/A N/A N/A N/A self systemtray recompress setEnabled True N/A checkapps N/A N/A self N/A N/A N/A Check if the required command line apps exist. N/A exe N/A N/A N/A sys platform win32 .exe N/A status False N/A retcode N/A N/A self safe_call N/A N/A jpegoptim exe  --version N/A N/A retcode 0 N/A N/A status True N/A N/A N/A N/A sys stderr write [error] please install jpegoptim N/A retcode N/A N/A self safe_call N/A N/A optipng exe  -v N/A N/A retcode 0 N/A N/A status True N/A N/A N/A N/A sys stderr write [error] please install optipng N/A retcode N/A N/A self safe_call N/A N/A advpng exe  --version N/A N/A retcode 0 N/A N/A status True N/A N/A N/A N/A sys stderr write [error] please install advancecomp N/A retcode N/A N/A self safe_call N/A N/A pngcrush exe  -version N/A N/A retcode 0 N/A N/A status True N/A N/A N/A N/A sys stderr write [error] please install pngcrush N/A status N/A safe_call N/A N/A self command N/A N/A N/A  cross-platform command-line check  N/A True N/A N/A N/A N/A N/A call command shell True stdout PIPE N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A errno EINTR N/A N/A N/A N/A N/A hide_main_window N/A N/A self N/A N/A N/A N/A N/A self isVisible N/A N/A N/A N/A self hide N/A N/A N/A QSystemTrayIcon isSystemTrayAvailable N/A N/A N/A N/A N/A N/A self systemtray hideMain setText &Show window N/A N/A N/A N/A self show N/A N/A N/A QSystemTrayIcon isSystemTrayAvailable N/A N/A N/A N/A N/A N/A self systemtray hideMain setText &Hide window N/A closeEvent N/A N/A self event N/A N/A N/A N/A N/A N/A self settings setValue geometry N/A QVariant N/A N/A self saveGeometry N/A N/A N/A event accept N/A N/A TriTableModel N/A QAbstractTableModel N/A __init__ N/A N/A self parent imagelist header N/A args N/A N/A 
        @param parent Qt parent object.
        @param imagelist A list of tuples.
        @param header A list of strings.
         N/A N/A N/A QAbstractTableModel __init__ self parent args N/A N/A self imagelist imagelist N/A N/A self header header N/A rowCount N/A N/A self parent N/A N/A N/A Count the number of rows. N/A N/A len N/A self imagelist N/A columnCount N/A N/A self parent N/A N/A N/A Count the number of columns. N/A N/A len N/A self header N/A data N/A N/A self index role N/A N/A N/A Fill the table with data. N/A N/A N/A N/A index isValid N/A N/A N/A QVariant N/A N/A N/A role N/A Qt DisplayRole N/A N/A data N/A N/A N/A self imagelist N/A N/A N/A index row N/A N/A N/A index column N/A N/A QVariant data N/A N/A N/A N/A N/A N/A index column 0 N/A role N/A Qt DecorationRole N/A N/A f_icon N/A N/A N/A self imagelist N/A N/A N/A index row N/A 4 N/A N/A QVariant f_icon N/A N/A N/A QVariant N/A headerData N/A N/A self col orientation role N/A N/A N/A Fill the table headers. N/A N/A N/A orientation N/A Qt Horizontal N/A N/A role N/A Qt DisplayRole N/A role N/A Qt DecorationRole N/A N/A N/A QVariant N/A N/A self header N/A col N/A N/A QVariant N/A N/A ImageRow N/A N/A __init__ N/A N/A self image waitingIcon N/A None N/A N/A  Build the information visible in the table image row.  N/A N/A self image image N/A d N/A shortname oldfilesizestr newfilesizestr ratiostr icon fullpath N/A N/A N/A i N/A N/A N/A N/A self statusStr N/A i shortname N/A N/A N/A i N/A N/A N/A i compressed N/A size N/A i oldfilesize system alternative N/A N/A N/A i N/A N/A N/A i compressed N/A size N/A i newfilesize system alternative N/A N/A N/A i N/A N/A N/A i compressed N/A %.1f%% N/A 100 N/A N/A N/A float N/A i newfilesize N/A i oldfilesize 100 N/A N/A N/A i N/A N/A N/A i compressed N/A i icon waitingIcon N/A N/A N/A i N/A N/A i fullpath N/A names N/A shortname oldfilesizestr newfilesizestr ratiostr icon N/A N/A i n N/A enumerate names N/A N/A N/A d N/A i N/A d N/A n N/A N/A self d d N/A statusStr N/A N/A self N/A N/A N/A  Set the status message.  N/A N/A N/A self image failed N/A N/A ERROR: %s N/A N/A N/A self image compressing N/A N/A message Compressing %s... N/A message N/A N/A N/A N/A N/A self image compressed N/A N/A self image recompression N/A N/A Queued for recompression... N/A N/A N/A N/A self image compressed N/A N/A Queued... N/A %s N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A N/A self d N/A key N/A self image N/A N/A Image N/A N/A __init__ N/A N/A self fullpath N/A N/A N/A  gather image information.  N/A N/A self valid False N/A N/A N/A self reset N/A N/A self fullpath fullpath N/A N/A N/A N/A path isfile N/A self fullpath N/A access N/A self fullpath WRITEABLE N/A N/A N/A self filetype N/A determinetype N/A self fullpath N/A N/A N/A self filetype N/A jpeg png N/A N/A oldfile N/A QFileInfo N/A self fullpath N/A N/A self shortname N/A N/A oldfile fileName N/A N/A self oldfilesize N/A N/A oldfile size N/A N/A self icon N/A QIcon N/A self fullpath N/A N/A self valid True N/A reset N/A N/A self N/A N/A N/A N/A self failed False N/A N/A self compressed False N/A N/A self compressing False N/A N/A self recompression False N/A compress N/A N/A self N/A N/A N/A  Compress the image and return it to the thread.  N/A N/A N/A self valid N/A N/A Tried to compress invalid image (unsupported format or not             file) N/A N/A N/A self reset N/A N/A self compressing True N/A exe N/A N/A N/A sys platform win32 .exe N/A runString N/A jpeg png N/A N/A jpegoptim exe  -f --strip-all '%(file)s' N/A N/A N/A N/A optipng exe  -force -o7 '%(file)s'&&advpng exe  -z4 '%(file)s' && pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time '%(file)s' '%(file)s.bak' && mv '%(file)s.bak' '%(file)s' N/A N/A copy N/A self fullpath N/A N/A self fullpath ~ N/A N/A N/A retcode N/A call N/A N/A runString N/A N/A self filetype N/A file N/A self fullpath shell True stdout PIPE N/A N/A N/A N/A retcode -1 N/A N/A retcode 0 N/A N/A N/A self newfilesize N/A N/A N/A QFile N/A self fullpath size N/A N/A self compressed True N/A N/A N/A self newfilesize N/A self oldfilesize N/A N/A N/A copy N/A N/A self fullpath ~ N/A self fullpath N/A N/A self newfilesize N/A self oldfilesize N/A N/A remove N/A N/A self fullpath ~ N/A N/A N/A self failed True N/A N/A self compressing False N/A N/A self retcode retcode N/A self N/A N/A Worker N/A QThread N/A __init__ N/A N/A self parent N/A None N/A N/A N/A N/A QThread __init__ self parent N/A N/A self toDisplay N/A Queue N/A N/A self threadpool N/A ThreadPool max_workers N/A cpu_count N/A __del__ N/A N/A self N/A N/A N/A N/A N/A N/A self threadpool shutdown N/A compress_file N/A N/A self images showapp verbose imagelist N/A N/A N/A Start the worker thread. N/A image images N/A N/A N/A N/A time sleep 0.05 N/A N/A N/A N/A self threadpool add_job N/A image compress None return_callback N/A N/A self toDisplay put N/A N/A self showapp showapp N/A N/A self verbose verbose N/A N/A self imagelist imagelist N/A N/A N/A self start N/A run N/A N/A self N/A N/A N/A Compress the given file, get data from it and call update_table. N/A tp N/A self threadpool N/A N/A N/A self showapp N/A N/A N/A N/A tp _ThreadPool__active_worker_count 0 N/A N/A N/A tp _ThreadPool__jobs empty N/A N/A image N/A N/A N/A self toDisplay get N/A N/A N/A self emit N/A SIGNAL updateUi N/A N/A N/A N/A self showapp N/A self verbose N/A N/A N/A N/A image retcode 0 N/A N/A ir N/A ImageRow image N/A N/A N/A N/A N/A N/A N/A N/A File:  N/A ir N/A fullpath , Old Size:  N/A ir N/A oldfilesizestr , New Size:  N/A ir N/A newfilesizestr , Ratio:  N/A ir N/A ratiostr N/A N/A N/A sys stderr N/A [error] %s could not be compressed N/A image fullpath N/A N/A Systray N/A QWidget N/A __init__ N/A N/A self parent N/A N/A N/A N/A N/A QWidget __init__ self N/A N/A self parent parent N/A N/A N/A self createActions N/A N/A N/A self createTrayIcon N/A N/A N/A N/A self trayIcon show N/A createActions N/A N/A self N/A N/A N/A N/A self quitAction N/A QAction N/A N/A self tr &Quit self N/A N/A N/A QObject connect N/A self quitAction N/A SIGNAL triggered() qApp N/A SLOT quit() N/A N/A self addFiles N/A QAction N/A N/A self tr &Add and compress self N/A icon N/A QIcon N/A N/A N/A icon addPixmap N/A QPixmap N/A N/A N/A N/A self parent ui get_image pixmaps/list-add.png N/A QIcon Normal N/A QIcon Off N/A N/A N/A N/A self addFiles setIcon icon N/A N/A N/A QObject connect N/A self addFiles N/A SIGNAL triggered() N/A N/A self parent file_dialog N/A N/A self recompress N/A QAction N/A N/A self tr &Recompress self N/A icon2 N/A QIcon N/A N/A N/A icon2 addPixmap N/A QPixmap N/A N/A N/A N/A self parent ui get_image pixmaps/view-refresh.png N/A QIcon Normal N/A QIcon Off N/A N/A N/A N/A self recompress setIcon icon2 N/A N/A N/A N/A self recompress setDisabled True N/A N/A N/A QObject connect N/A self addFiles N/A SIGNAL triggered() N/A N/A self parent recompress_files N/A N/A self hideMain N/A QAction N/A N/A self tr &Hide window self N/A N/A N/A QObject connect N/A self hideMain N/A SIGNAL triggered() N/A N/A self parent hide_main_window N/A createTrayIcon N/A N/A self N/A N/A N/A N/A self trayIconMenu N/A QMenu self N/A N/A N/A N/A self trayIconMenu addAction N/A self addFiles N/A N/A N/A N/A self trayIconMenu addAction N/A self recompress N/A N/A N/A N/A self trayIconMenu addSeparator N/A N/A N/A N/A self trayIconMenu addAction N/A self hideMain N/A N/A N/A N/A self trayIconMenu addSeparator N/A N/A N/A N/A self trayIconMenu addAction N/A self quitAction N/A N/A N/A QSystemTrayIcon isSystemTrayAvailable N/A N/A N/A self trayIcon N/A QSystemTrayIcon self N/A N/A N/A N/A self trayIcon setContextMenu N/A self trayIconMenu N/A N/A N/A N/A self trayIcon setToolTip Trimage image compressor N/A N/A N/A N/A self trayIcon setIcon N/A QIcon N/A N/A N/A N/A self parent ui get_image pixmaps/trimage-icon.png N/A N/A N/A N/A __name__ __main__ N/A N/A app N/A QApplication N/A sys argv N/A myapp N/A StartQT4 N/A N/A myapp showapp N/A N/A N/A N/A myapp show N/A N/A N/A sys exit N/A N/A app exec_