1
0
Fork 0

Add a parser for harmless fileformats

This commit is contained in:
jvoisin 2018-03-31 15:46:50 +02:00
parent f391c9603c
commit 302a5ea002
1 changed files with 14 additions and 0 deletions

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