PCQRSCANER/venv/Lib/site-packages/textract/parsers/txt_parser.py

10 lines
205 B
Python
Raw Normal View History

2019-12-22 21:51:47 +01:00
from .utils import BaseParser
class Parser(BaseParser):
"""Parse ``.txt`` files"""
def extract(self, filename, **kwargs):
with open(filename) as stream:
return stream.read()