1
0
mirror of synced 2024-11-25 18:54:22 +01:00
mat2/libmat2/harmless.py
2018-06-04 23:20:30 +02:00

19 lines
520 B
Python

from typing import Dict
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) -> None:
super().__init__(filename)
self.filename = filename
self.output_filename = filename
def get_meta(self) -> Dict[str, str]:
return dict()
def remove_all(self) -> bool:
return True