diff options
Diffstat (limited to 'libmat/mat.py')
| -rw-r--r-- | libmat/mat.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmat/mat.py b/libmat/mat.py index 5b5a83c..3947606 100644 --- a/libmat/mat.py +++ b/libmat/mat.py | |||
| @@ -9,7 +9,6 @@ import os | |||
| 9 | import platform | 9 | import platform |
| 10 | import subprocess | 10 | import subprocess |
| 11 | import xml.sax | 11 | import xml.sax |
| 12 | import mimetypes | ||
| 13 | 12 | ||
| 14 | import hachoir_core.cmd_line | 13 | import hachoir_core.cmd_line |
| 15 | import hachoir_parser | 14 | import hachoir_parser |
| @@ -46,7 +45,8 @@ def get_logo(): | |||
| 46 | 45 | ||
| 47 | 46 | ||
| 48 | def get_datafile_path(filename): | 47 | def get_datafile_path(filename): |
| 49 | """ Return the path to the given ressource | 48 | """ Return the path to $filename |
| 49 | :param string filename: | ||
| 50 | """ | 50 | """ |
| 51 | if os.path.isfile(os.path.join(os.path.curdir, 'data', filename)): | 51 | if os.path.isfile(os.path.join(os.path.curdir, 'data', filename)): |
| 52 | return os.path.join(os.path.curdir, 'data', filename) | 52 | return os.path.join(os.path.curdir, 'data', filename) |
| @@ -82,6 +82,7 @@ class XMLParser(xml.sax.handler.ContentHandler): | |||
| 82 | """ | 82 | """ |
| 83 | 83 | ||
| 84 | def __init__(self): | 84 | def __init__(self): |
| 85 | xml.sax.handler.ContentHandler.__init__(self) | ||
| 85 | self.dict = {} | 86 | self.dict = {} |
| 86 | self.list = [] | 87 | self.list = [] |
| 87 | self.content, self.key = '', '' | 88 | self.content, self.key = '', '' |
