PCQRSCANER/venv/Lib/site-packages/textract/parsers/txt_parser.py
2019-12-22 21:51:47 +01:00

10 lines
205 B
Python

from .utils import BaseParser
class Parser(BaseParser):
"""Parse ``.txt`` files"""
def extract(self, filename, **kwargs):
with open(filename) as stream:
return stream.read()