summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parser.py b/lib/parser.py
index 9d523c0..ba4981d 100644
--- a/lib/parser.py
+++ b/lib/parser.py
@@ -40,7 +40,7 @@ class Generic_parser(object):
40 ''' 40 '''
41 for field in self.editor: 41 for field in self.editor:
42 if self._should_remove(field): 42 if self._should_remove(field):
43 self._remove(field) 43 self._remove(field.name)
44 hachoir_core.field.writeIntoFile(self.editor, self.filename + POSTFIX) 44 hachoir_core.field.writeIntoFile(self.editor, self.filename + POSTFIX)
45 if self.backup is False: 45 if self.backup is False:
46 mat.secure_remove(self.filename) #remove the old file 46 mat.secure_remove(self.filename) #remove the old file
@@ -61,7 +61,7 @@ class Generic_parser(object):
61 ''' 61 '''
62 Delete the given field 62 Delete the given field
63 ''' 63 '''
64 del self.editor[field.name] 64 del self.editor[field]
65 65
66 def get_meta(self): 66 def get_meta(self):
67 ''' 67 '''