summaryrefslogtreecommitdiff
path: root/oldconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-10-02 23:43:00 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-10-03 00:15:03 +0200
commit21e47ce43181ea6f460aa85e944c0bfad0672413 (patch)
tree6b115cc7f249166fe8de10db5ef8dd79070d5313 /oldconfig.py
parent92ff1b9c4494fbba042b41efd21d1649052ce71e (diff)
Fix parse error message on the line after help texts
The correct error and line number was reported, but not the correct line contents. self._line needs to be set before calling _tokenize(), so that _parse_error() knows the context. There's no need to set self._line for empty lines, because we immediately end up back in _next_line() after parsing the help text, which refetches the empty line and updates self._line.
Diffstat (limited to 'oldconfig.py')
0 files changed, 0 insertions, 0 deletions