1
0
Fork 0
mat2/src/harmless.py

17 lines
427 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', 'application/rdf+xml'}
def __init__(self, filename: str):
self.filename = filename
self.output_filename = filename
def get_meta(self):
return dict()
def remove_all(self):
return True