diff options
Diffstat (limited to 'libmat2/harmless.py')
| -rw-r--r-- | libmat2/harmless.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libmat2/harmless.py b/libmat2/harmless.py index 2878571..9032caf 100644 --- a/libmat2/harmless.py +++ b/libmat2/harmless.py | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | import shutil | ||
| 1 | from typing import Dict | 2 | from typing import Dict |
| 2 | from . import abstract | 3 | from . import abstract |
| 3 | 4 | ||
| @@ -6,13 +7,9 @@ class HarmlessParser(abstract.AbstractParser): | |||
| 6 | """ This is the parser for filetypes that do not contain metadata. """ | 7 | """ This is the parser for filetypes that do not contain metadata. """ |
| 7 | mimetypes = {'text/plain', } | 8 | mimetypes = {'text/plain', } |
| 8 | 9 | ||
| 9 | def __init__(self, filename: str) -> None: | ||
| 10 | super().__init__(filename) | ||
| 11 | self.filename = filename | ||
| 12 | self.output_filename = filename | ||
| 13 | |||
| 14 | def get_meta(self) -> Dict[str, str]: | 10 | def get_meta(self) -> Dict[str, str]: |
| 15 | return dict() | 11 | return dict() |
| 16 | 12 | ||
| 17 | def remove_all(self) -> bool: | 13 | def remove_all(self) -> bool: |
| 14 | shutil.copy(self.filename, self.output_filename) | ||
| 18 | return True | 15 | return True |
