diff options
| author | jvoisin | 2015-08-19 18:42:28 +0200 |
|---|---|---|
| committer | jvoisin | 2015-08-19 18:42:28 +0200 |
| commit | 7b8ec9e5ce37de7cbf0a9bc61b94cccb682cabd8 (patch) | |
| tree | 2bd9232049c0956f71e254b2a99c5717360f4529 /libmat/parser.py | |
| parent | 13c05f347fb3f4c9b1fcbbaf791f7cfae2219443 (diff) | |
Minor code simplification
Diffstat (limited to '')
| -rw-r--r-- | libmat/parser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmat/parser.py b/libmat/parser.py index eed3140..43de6d6 100644 --- a/libmat/parser.py +++ b/libmat/parser.py | |||
| @@ -36,8 +36,7 @@ class GenericParser(object): | |||
| 36 | except TypeError: # get rid of "decoding Unicode is not supported" | 36 | except TypeError: # get rid of "decoding Unicode is not supported" |
| 37 | self.filename = filename | 37 | self.filename = filename |
| 38 | self.basename = os.path.basename(filename) | 38 | self.basename = os.path.basename(filename) |
| 39 | _, output = tempfile.mkstemp() | 39 | self.output = hachoir_core.cmd_line.unicodeFilename(tempfile.mkstemp()[1]) |
| 40 | self.output = hachoir_core.cmd_line.unicodeFilename(output) | ||
| 41 | 40 | ||
| 42 | def __del__(self): | 41 | def __del__(self): |
| 43 | """ Remove tempfile if it was not used | 42 | """ Remove tempfile if it was not used |
