summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjvoisin2018-03-31 15:46:50 +0200
committerjvoisin2018-03-31 15:46:50 +0200
commit302a5ea002478cac86ff7be03d2add46c81a96de (patch)
tree21fc254ff789922b2ad0bbd19301bbd4e782532e /src
parentf391c9603c36a8ec80942c23ac6ba39fca5df72a (diff)
Add a parser for harmless fileformats
Diffstat (limited to 'src')
-rw-r--r--src/harmless.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/harmless.py b/src/harmless.py
new file mode 100644
index 0000000..fdcc7c7
--- /dev/null
+++ b/src/harmless.py
@@ -0,0 +1,14 @@
1from . import abstract
2
3class HarmlessParser(abstract.AbstractParser):
4 mimetypes = {'application/xml', 'text/plain'}
5
6 def __init__(self, filename: str):
7 self.filename = filename
8 self.output_filename = filename
9
10 def get_meta(self):
11 return dict()
12
13 def remove_all(self):
14 return True