Conditions | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from coala_utils.decorators import generate_eq |
||
19 | def __init__(self, filename): |
||
20 | """ |
||
21 | Constructs a new fileproxy object. |
||
22 | :param filename: The name of the file to load. |
||
23 | """ |
||
24 | self.filename = filename |
||
25 | with open(self.filename, "r", encoding="utf-8") as filehandle: |
||
26 | self.content = filehandle.read() |
||
27 | self.lines = tuple(self.content.splitlines(True)) |
||
28 | |||
46 |