summaryrefslogtreecommitdiff
path: root/libmat2/harmless.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2/harmless.py')
-rw-r--r--libmat2/harmless.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/libmat2/harmless.py b/libmat2/harmless.py
new file mode 100644
index 0000000..aa00582
--- /dev/null
+++ b/libmat2/harmless.py
@@ -0,0 +1,17 @@
1from . import abstract
2
3
4class HarmlessParser(abstract.AbstractParser):
5 """ This is the parser for filetypes that do not contain metadata. """
6 mimetypes = {'application/xml', 'text/plain'}
7
8 def __init__(self, filename: str):
9 super().__init__(filename)
10 self.filename = filename
11 self.output_filename = filename
12
13 def get_meta(self):
14 return dict()
15
16 def remove_all(self):
17 return True