From 38fae60b8beaf9c7b37c65325d2d285e62b6cb85 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 18 May 2018 23:52:40 +0200 Subject: Rename some files to simplify packaging - the `src` folder is now `libmat2` - the `main.py` script is now `mat2.py` --- libmat2/harmless.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libmat2/harmless.py (limited to 'libmat2/harmless.py') 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 @@ +from . import abstract + + +class HarmlessParser(abstract.AbstractParser): + """ This is the parser for filetypes that do not contain metadata. """ + mimetypes = {'application/xml', 'text/plain'} + + def __init__(self, filename: str): + super().__init__(filename) + self.filename = filename + self.output_filename = filename + + def get_meta(self): + return dict() + + def remove_all(self): + return True -- cgit v1.3