summaryrefslogtreecommitdiff
path: root/libmat/mat.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat/mat.py')
-rw-r--r--libmat/mat.py5
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
9import platform 9import platform
10import subprocess 10import subprocess
11import xml.sax 11import xml.sax
12import mimetypes
13 12
14import hachoir_core.cmd_line 13import hachoir_core.cmd_line
15import hachoir_parser 14import hachoir_parser
@@ -46,7 +45,8 @@ def get_logo():
46 45
47 46
48def get_datafile_path(filename): 47def 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 = '', ''