1
0
mirror of synced 2024-11-25 10:44:23 +01:00
mat2/libmat2/harmless.py

18 lines
447 B
Python
Raw Normal View History

2018-03-31 15:46:50 +02:00
from . import abstract
2018-03-31 15:46:50 +02:00
class HarmlessParser(abstract.AbstractParser):
2018-04-02 23:40:08 +02:00
""" This is the parser for filetypes that do not contain metadata. """
2018-05-15 23:28:51 +02:00
mimetypes = {'application/xml', 'text/plain'}
2018-03-31 15:46:50 +02:00
2018-06-04 20:39:27 +02:00
def __init__(self, filename: str) -> None:
2018-05-16 22:36:59 +02:00
super().__init__(filename)
2018-03-31 15:46:50 +02:00
self.filename = filename
self.output_filename = filename
def get_meta(self):
return dict()
def remove_all(self):
return True