1
0
mirror of synced 2024-11-22 09:14:23 +01:00
mat2/libmat2/harmless.py
jvoisin 38fae60b8b Rename some files to simplify packaging
- the `src` folder is now `libmat2`
- the `main.py` script is now `mat2.py`
2018-05-18 23:52:40 +02:00

18 lines
439 B
Python

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