1
0
mirror of synced 2024-11-21 16:54:23 +01:00

Add a parser for harmless fileformats

This commit is contained in:
jvoisin 2018-03-31 15:46:50 +02:00
parent f391c9603c
commit 302a5ea002

14
src/harmless.py Normal file
View File

@ -0,0 +1,14 @@
from . import abstract
class HarmlessParser(abstract.AbstractParser):
mimetypes = {'application/xml', 'text/plain'}
def __init__(self, filename: str):
self.filename = filename
self.output_filename = filename
def get_meta(self):
return dict()
def remove_all(self):
return True