(self, filename, _current=None)
| 47 | _ready = False |
| 48 | |
| 49 | def __init__(self, filename, _current=None): |
| 50 | # immutable: |
| 51 | self.filename = filename |
| 52 | # mutable: |
| 53 | if isinstance(_current, str): |
| 54 | _current = TextInfo(_current) |
| 55 | self._current = _current |
| 56 | start = -1 |
| 57 | self._start = _current.start if _current else -1 |
| 58 | self._nested = [] |
| 59 | self._set_ready() |
| 60 | |
| 61 | def __repr__(self): |
| 62 | args = (f'{a}={getattr(self, a)!r}' |
nothing calls this directly
no test coverage detected