summaryrefslogtreecommitdiff
path: root/libmat2/harmless.py
blob: 28785716ec57f7f6007c11876ea24279113ff573 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from typing import Dict
from . import abstract


class HarmlessParser(abstract.AbstractParser):
    """ This is the parser for filetypes that do not contain metadata. """
    mimetypes = {'text/plain', }

    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