Source code for pyfileconf.io.file.load.parsers.base

from typing import List

[docs]class FileParser:
[docs] def __init__(self, filepath: str): self.filepath = filepath
[docs] def load(self) -> List[str]: with open(self.filepath, 'r', encoding='utf8') as f: contents = f.readlines() return contents