Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias Assign NameStore Str Assign NameStore Dict Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad Str attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num If CompareNotIn TupleLoad NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Return SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assert BoolOpAnd NameLoad CompareNotIn Str NameLoad Assert BoolOpAnd NameLoad CompareNotIn Str NameLoad Assert CompareNotIn TupleLoad NameLoad NameLoad 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 Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Continue For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore BinOpAdd Num CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr If CompareGt NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign AttributeStore NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad If CompareEq NameLoad Num body Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr TupleLoad Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad NameLoad BoolOpOr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Break AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Break AugAssignAdd NameStore NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad NameLoad BinOpLShift Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num orelse Assign AttributeStore NameLoad attr NameLoad If CompareEq NameLoad Str body Assign NameStore Str While BoolOpAnd CompareNotEq NameLoad Str CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Num If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Break AugAssignAdd NameStore NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Num If CompareEq NameLoad Str body Assign NameStore Str While CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Break AugAssignAdd NameStore NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Num If CompareNotEq NameLoad Str body Raise Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr If CompareLt NameLoad NameLoad body Return NameLoad If AttributeLoad NameLoad attr body Assign NameStore Str For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpBitAnd Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd NameStore Call NameLoad NameLoad orelse Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Repr AttributeLoad NameLoad attr Repr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Str body Raise Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Break If BoolOpOr CompareNotEq SubscriptLoad NameLoad Index Num Str CompareNotEq SubscriptLoad NameLoad Slice Num Str body Raise Str Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler body Assign NameStore ListLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Num While BoolOpAnd NameLoad CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareGt Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Break decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults UnaryOpUSub Call NameLoad NameLoad NameLoad For NameStore NameLoad body If CompareGt NameLoad NameLoad body Continue If CompareLt NameLoad NameLoad body Break For NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body TryExcept body Assign NameStore Call AttributeLoad Call NameLoad NameLoad Str attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore NameLoad FunctionDef arguments args defaults body Global identifier identifier identifier identifier identifier Assign NameStore NameLoad Assign NameStore Dict Assign NameStore ListLoad Assign NameStore Dict Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Continue Assign NameStore SubscriptLoad NameLoad Slice Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num If UnaryOpNot BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Continue If BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Expr Call NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Expr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Assign NameStore NameLoad While Num body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareLt NameLoad Num body Break Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Assign NameStore NameLoad While Num body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareLt NameLoad Num body Break Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad For TupleStore NameStore NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad NameLoad body Return NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str If UnaryOpNot NameLoad body Expr Call NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str If UnaryOpNot NameLoad body Expr Call NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str If UnaryOpNot NameLoad body Expr Call NameLoad TryExcept body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Assign NameStore Call NameLoad NameLoad Return BoolOpOr NameLoad NameLoad If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body If BinOpBitAnd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num body Return NameLoad orelse Return NameLoad Return NameLoad orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr handlers ExceptHandler body Continue If CompareEq NameLoad NameLoad body Return Global identifier Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad Assign NameStore Str If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Raise BinOpMod Call NameLoad Str NameLoad decorator_list
N/A N/A 
This module is based on a rox module (LGPL):

http://cvs.sourceforge.net/viewcvs.py/rox/ROX-Lib2/python/rox/mime.py?rev=1.21&view=log

This module provides access to the shared MIME database.

types is a dictionary of all known MIME types, indexed by the type name, e.g.
types['application/x-python']

Applications can install information about MIME types by storing an
XML file as <MIME>/packages/<application>.xml and running the
update-mime-database command, which is provided by the freedesktop.org
shared mime database package.

See http://www.freedesktop.org/standards/shared-mime-info-spec/ for
information about the format of these files.

(based on version 0.13)
 N/A os N/A stat N/A fnmatch N/A xdg.BaseDirectory N/A xdg.Xocale xml.dom Node minidom XML_NAMESPACE N/A FREE_NS http://www.freedesktop.org/standards/shared-mime-info N/A types N/A N/A exts None N/A globs None N/A literals None N/A magic None _get_node_data N/A N/A node N/A N/A N/A Get text of XML node N/A N/A N/A N/A N/A join N/A N/A n nodeValue N/A n N/A node childNodes strip N/A lookup N/A N/A media subtype N/A None N/A N/A Get the MIMEtype object for this type, creating a new one if needed. N/A N/A N/A subtype None N/A / media N/A N/A N/A media subtype N/A N/A media split / 1 N/A N/A N/A media subtype types N/A N/A N/A types N/A N/A media subtype N/A MIMEtype media subtype N/A N/A types N/A N/A media subtype N/A MIMEtype N/A N/A N/A Type holding data about a MIME type __init__ N/A N/A self media subtype N/A N/A N/A Don't use this constructor directly; use mime.lookup() instead. N/A N/A media N/A / media N/A N/A subtype N/A / subtype N/A N/A N/A media subtype types N/A N/A self media media N/A N/A self subtype subtype N/A N/A self _comment None N/A _load N/A N/A self N/A N/A N/A Loads comment for current language. Use get_comment() instead. N/A resource N/A N/A N/A os path join mime N/A self media N/A N/A self subtype .xml N/A path N/A N/A N/A xdg BaseDirectory load_data_paths resource N/A N/A doc N/A N/A minidom parse path N/A N/A doc None N/A N/A N/A comment N/A N/A N/A doc documentElement getElementsByTagNameNS FREE_NS comment N/A N/A lang N/A N/A N/A comment getAttributeNS XML_NAMESPACE lang en N/A goodness N/A 1 N/A lang N/A N/A xdg Xocale langs N/A N/A goodness N/A N/A self _comment N/A 0 N/A N/A N/A self _comment N/A goodness N/A _get_node_data comment N/A N/A goodness 2 N/A N/A N/A get_comment N/A N/A self N/A N/A N/A Returns comment for current language, loading it if needed. N/A N/A N/A self _comment None N/A N/A N/A self _comment N/A 0 N/A str self N/A N/A N/A self _load N/A N/A N/A self _comment N/A 1 N/A __str__ N/A N/A self N/A N/A N/A N/A N/A N/A self media / N/A self subtype N/A __repr__ N/A N/A self N/A N/A N/A N/A [%s: %s] N/A self N/A N/A self _comment (comment not loaded) N/A N/A MagicRule N/A N/A __init__ N/A N/A self f N/A N/A N/A N/A self next None N/A N/A self prev None N/A ind N/A True N/A N/A c N/A N/A f read 1 N/A N/A c > N/A N/A N/A ind c N/A N/A ind N/A N/A N/A self nest 0 N/A N/A N/A self nest N/A int ind N/A start N/A True N/A N/A c N/A N/A f read 1 N/A N/A c = N/A N/A N/A start c N/A N/A self start N/A int start N/A hb N/A N/A f read 1 N/A lb N/A N/A f read 1 N/A N/A self lenvalue N/A N/A ord lb N/A N/A ord hb 8 N/A N/A self value N/A N/A f read N/A self lenvalue N/A c N/A N/A f read 1 N/A N/A c & N/A N/A N/A self mask N/A N/A f read N/A self lenvalue N/A c N/A N/A f read 1 N/A N/A N/A self mask None N/A N/A c ~ N/A N/A w N/A N/A N/A c + N/A c N/A N/A c N/A N/A f read 1 N/A N/A N/A c + N/A c N/A N/A N/A w c N/A N/A self word N/A int w N/A N/A N/A self word 1 N/A N/A c + N/A N/A r N/A N/A c N/A N/A c N/A N/A f read 1 N/A N/A c N/A N/A N/A r c N/A N/A self range N/A int r N/A N/A N/A self range 1 N/A N/A c N/A N/A Malformed MIME magic line N/A getLength N/A N/A self N/A N/A N/A N/A N/A N/A self start N/A self lenvalue N/A self range N/A appendRule N/A N/A self rule N/A N/A N/A N/A N/A self nest N/A rule nest N/A N/A N/A self next rule N/A N/A rule prev self N/A N/A N/A self prev N/A N/A N/A N/A N/A self prev appendRule rule N/A match N/A N/A self buffer N/A N/A N/A N/A N/A self match0 buffer N/A N/A N/A self next N/A N/A N/A N/A N/A self next match buffer N/A True N/A match0 N/A N/A self buffer N/A N/A N/A l N/A len buffer N/A o N/A range N/A self range N/A N/A s N/A N/A self start o N/A e N/A s N/A self lenvalue N/A N/A l e N/A N/A False N/A N/A self mask N/A N/A test N/A i N/A range N/A self lenvalue N/A N/A c N/A N/A ord N/A buffer N/A N/A s i N/A ord N/A N/A self mask N/A i N/A test N/A chr c N/A N/A test N/A buffer N/A s e N/A N/A test N/A self value N/A N/A True N/A __repr__ N/A N/A self N/A N/A N/A N/A <MagicRule %d>%d=[%d]%s&%s~%d+%d> N/A N/A self nest N/A self start N/A self lenvalue N/A N/A self value N/A N/A self mask N/A self word N/A self range N/A N/A MagicType N/A N/A __init__ N/A N/A self mtype N/A N/A N/A N/A self mtype mtype N/A N/A self top_rules N/A N/A N/A self last_rule None N/A getLine N/A N/A self f N/A N/A N/A nrule N/A MagicRule f N/A N/A N/A nrule nest N/A self last_rule N/A N/A N/A N/A N/A self last_rule appendRule nrule N/A N/A N/A N/A N/A self top_rules append nrule N/A N/A self last_rule nrule N/A nrule N/A match N/A N/A self buffer N/A N/A N/A rule N/A self top_rules N/A N/A N/A N/A rule match buffer N/A N/A N/A self mtype N/A __repr__ N/A N/A self N/A N/A N/A N/A <MagicType %s> N/A self mtype N/A N/A MagicDB N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self types N/A N/A N/A self maxlen 0 N/A mergeFile N/A N/A self fname N/A N/A N/A f N/A file fname r N/A line N/A N/A f readline N/A N/A line MIME-Magic
 N/A N/A Not a MIME magic file N/A True N/A N/A shead N/A N/A f readline N/A N/A shead N/A N/A N/A N/A N/A N/A shead N/A 0 [ N/A N/A shead N/A -2 ]
 N/A N/A Malformed section heading N/A N/A pri tname N/A N/A N/A shead N/A 1 -2 split : N/A pri N/A int pri N/A mtype N/A lookup tname N/A N/A N/A ents N/A N/A self types N/A pri N/A N/A N/A N/A ents N/A N/A N/A N/A self types N/A pri ents N/A magictype N/A MagicType mtype N/A c N/A N/A f read 1 N/A N/A N/A f seek -1 1 N/A N/A c N/A c [ N/A N/A rule N/A N/A magictype getLine f N/A N/A rule N/A N/A N/A rule getLength N/A self maxlen N/A N/A N/A self maxlen N/A N/A rule getLength N/A c N/A N/A f read 1 N/A N/A N/A f seek -1 1 N/A N/A N/A ents append magictype N/A N/A c N/A N/A N/A match_data N/A N/A self data max_pri min_pri N/A 100 0 N/A N/A pris N/A N/A N/A self types keys N/A N/A N/A pris sort N/A N/A N/A a b N/A N/A N/A cmp a b N/A pri pris N/A N/A N/A pri max_pri N/A N/A N/A N/A pri min_pri N/A N/A N/A type N/A N/A self types N/A pri N/A N/A m N/A N/A type match data N/A m N/A N/A m N/A match N/A N/A self path max_pri min_pri N/A 100 0 N/A N/A N/A N/A buf N/A N/A N/A file path r read N/A self maxlen N/A N/A N/A self match_data buf max_pri min_pri N/A N/A N/A N/A N/A None N/A __repr__ N/A N/A self N/A N/A N/A N/A <MagicDB %s> N/A self types N/A N/A N/A text N/A lookup text plain N/A inode_block N/A lookup inode blockdevice N/A inode_char N/A lookup inode chardevice N/A inode_dir N/A lookup inode directory N/A inode_fifo N/A lookup inode fifo N/A inode_socket N/A lookup inode socket N/A inode_symlink N/A lookup inode symlink N/A inode_door N/A lookup inode door N/A app_exe N/A lookup application executable N/A _cache_uptodate False _cache_database N/A N/A N/A N/A N/A exts globs literals magic _cache_uptodate N/A _cache_uptodate True N/A exts N/A N/A globs N/A N/A literals N/A N/A magic N/A MagicDB _import_glob_file N/A N/A path N/A N/A N/A Loads name matching information from a MIME directory. N/A line N/A file path N/A N/A N/A N/A line startswith # N/A N/A N/A line N/A line N/A -1 N/A N/A type_name pattern N/A N/A line split : 1 N/A mtype N/A lookup type_name N/A N/A N/A pattern startswith *. N/A N/A rest N/A pattern N/A 2 N/A N/A N/A N/A * rest N/A [ rest N/A ? rest N/A N/A N/A exts N/A rest mtype N/A N/A N/A N/A * pattern N/A [ pattern N/A ? pattern N/A N/A N/A N/A globs append N/A pattern mtype N/A N/A N/A literals N/A pattern mtype N/A N/A path N/A N/A N/A xdg BaseDirectory load_data_paths N/A N/A N/A os path join mime globs N/A N/A N/A _import_glob_file path N/A path N/A N/A N/A xdg BaseDirectory load_data_paths N/A N/A N/A os path join mime magic N/A N/A N/A N/A magic mergeFile path N/A N/A N/A globs sort N/A N/A N/A a b N/A N/A cmp N/A len N/A b N/A 0 N/A len N/A a N/A 0 N/A get_type_by_name N/A N/A path N/A N/A N/A Returns type of file by its name, or None if not known N/A N/A _cache_uptodate N/A N/A N/A _cache_database N/A leaf N/A N/A N/A os path basename path N/A N/A leaf literals N/A N/A N/A literals N/A leaf N/A lleaf N/A N/A leaf lower N/A N/A lleaf literals N/A N/A N/A literals N/A lleaf N/A ext leaf N/A 1 N/A N/A p N/A N/A ext find . N/A N/A p 0 N/A N/A N/A ext N/A ext N/A N/A p 1 N/A N/A ext exts N/A N/A N/A exts N/A ext N/A ext lleaf N/A 1 N/A N/A p N/A N/A ext find . N/A N/A p 0 N/A N/A N/A ext N/A ext N/A N/A p 1 N/A N/A ext exts N/A N/A N/A exts N/A ext N/A N/A glob mime_type globs N/A N/A N/A N/A fnmatch fnmatch leaf glob N/A N/A mime_type N/A N/A N/A fnmatch fnmatch lleaf glob N/A N/A mime_type N/A None N/A get_type_by_contents N/A N/A path max_pri min_pri N/A 100 0 N/A N/A Returns type of file by its contents, or None if not known N/A N/A _cache_uptodate N/A N/A N/A _cache_database N/A N/A N/A magic match path max_pri min_pri N/A get_type_by_data N/A N/A data max_pri min_pri N/A 100 0 N/A N/A Returns type of the data N/A N/A _cache_uptodate N/A N/A N/A _cache_database N/A N/A N/A magic match_data data max_pri min_pri N/A get_type N/A N/A path follow name_pri N/A 1 100 N/A N/A Returns type of file indicated by path.
    path     - pathname to check (need not exist)
    follow   - when reading file, follow symbolic links
    name_pri - Priority to do name matches.  100=override magic N/A N/A _cache_uptodate N/A N/A N/A _cache_database N/A N/A N/A follow N/A N/A st N/A N/A os stat path N/A N/A st N/A N/A os lstat path N/A N/A N/A N/A t N/A get_type_by_name path N/A N/A t text N/A N/A N/A stat S_ISREG N/A st st_mode N/A N/A t N/A get_type_by_contents path min_pri name_pri N/A N/A t N/A N/A t N/A get_type_by_name path N/A N/A t N/A N/A t N/A get_type_by_contents path max_pri name_pri N/A N/A t None N/A N/A N/A N/A N/A stat S_IMODE N/A st st_mode 73 N/A N/A app_exe N/A N/A text N/A t N/A N/A N/A N/A stat S_ISDIR N/A st st_mode N/A N/A inode_dir N/A N/A N/A N/A stat S_ISCHR N/A st st_mode N/A N/A inode_char N/A N/A N/A N/A stat S_ISBLK N/A st st_mode N/A N/A inode_block N/A N/A N/A N/A stat S_ISFIFO N/A st st_mode N/A N/A inode_fifo N/A N/A N/A N/A stat S_ISLNK N/A st st_mode N/A N/A inode_symlink N/A N/A N/A N/A stat S_ISSOCK N/A st st_mode N/A N/A inode_socket N/A inode_door N/A install_mime_info N/A N/A application package_file N/A N/A N/A Copy 'package_file' as ~/.local/share/mime/packages/<application>.xml.
    If package_file is None, install <app_dir>/<application>.xml.
    If already installed, does nothing. May overwrite an existing
    file with the same name (if the contents are different) N/A application .xml N/A new_data N/A N/A N/A file package_file read N/A package_dir N/A N/A N/A os path join mime packages N/A resource N/A N/A N/A os path join package_dir application N/A x N/A N/A N/A xdg BaseDirectory load_data_paths resource N/A N/A N/A N/A old_data N/A N/A N/A file x read N/A N/A N/A N/A N/A N/A old_data new_data N/A N/A N/A _cache_uptodate N/A _cache_uptodate False N/A new_file N/A N/A N/A os path join N/A N/A N/A xdg BaseDirectory save_data_path package_dir application N/A N/A N/A N/A file new_file w write new_data N/A command update-mime-database N/A N/A N/A os spawnlp N/A os P_WAIT command command N/A N/A N/A xdg BaseDirectory save_data_path mime N/A N/A N/A N/A os unlink new_file N/A N/A N/A Exception The '%s' command returned an error code!
Make sure you have the freedesktop.org shared MIME package:
http://standards.freedesktop.org/shared-mime-info/ command N/A