summaryrefslogtreecommitdiff
path: root/libmat2
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2')
-rw-r--r--libmat2/__init__.py2
-rw-r--r--libmat2/harmless.py7
2 files changed, 2 insertions, 7 deletions
diff --git a/libmat2/__init__.py b/libmat2/__init__.py
index 91a51d8..190abe5 100644
--- a/libmat2/__init__.py
+++ b/libmat2/__init__.py
@@ -12,8 +12,6 @@ unsupported_extensions = {
12 '.pot', 12 '.pot',
13 '.rdf', 13 '.rdf',
14 '.srt', 14 '.srt',
15 '.text',
16 '.txt',
17 '.wsdl', 15 '.wsdl',
18 '.xpdl', 16 '.xpdl',
19 '.xsd', 17 '.xsd',
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 @@
1import shutil
1from typing import Dict 2from typing import Dict
2from . import abstract 3from . 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