diff options
Diffstat (limited to 'libmat')
| -rw-r--r-- | libmat/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmat/parser.py b/libmat/parser.py index b81b576..73bebdd 100644 --- a/libmat/parser.py +++ b/libmat/parser.py | |||
| @@ -51,7 +51,7 @@ class GenericParser(object): | |||
| 51 | def create_backup_copy(self): | 51 | def create_backup_copy(self): |
| 52 | """ Create a backup copy | 52 | """ Create a backup copy |
| 53 | """ | 53 | """ |
| 54 | shutil.copy2(self.filename, os.path.join(self.filename, '.bak')) | 54 | shutil.copy2(self.filename, self.filename + '.bak') |
| 55 | 55 | ||
| 56 | def do_backup(self): | 56 | def do_backup(self): |
| 57 | """ Keep a backup of the file if asked. | 57 | """ Keep a backup of the file if asked. |
| @@ -60,7 +60,7 @@ class GenericParser(object): | |||
| 60 | but it greatly simplify new strippers implementation. | 60 | but it greatly simplify new strippers implementation. |
| 61 | """ | 61 | """ |
| 62 | if self.backup: | 62 | if self.backup: |
| 63 | shutil.move(self.filename, os.path.join(self.filename, '.bak')) | 63 | shutil.move(self.filename, self.filename + '.bak') |
| 64 | else: | 64 | else: |
| 65 | mat.secure_remove(self.filename) | 65 | mat.secure_remove(self.filename) |
| 66 | shutil.move(self.output, self.filename) | 66 | shutil.move(self.output, self.filename) |
