| 1508 | |
| 1509 | |
| 1510 | class FakeFile: |
| 1511 | def __init__(self): |
| 1512 | file_path = support.findfile("cfgparser.1", subdir="configdata") |
| 1513 | with open(file_path, encoding="utf-8") as f: |
| 1514 | self.lines = f.readlines() |
| 1515 | self.lines.reverse() |
| 1516 | |
| 1517 | def readline(self): |
| 1518 | if len(self.lines): |
| 1519 | return self.lines.pop() |
| 1520 | return '' |
| 1521 | |
| 1522 | |
| 1523 | def readline_generator(f): |
no outgoing calls
searching dependent graphs…