diff options
author | Li Weiwei <liweiwei@yeweitech.org> | 2018-05-18 11:15:53 +0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-05-18 15:23:02 +1000 |
commit | 3e6ab82179f7b9a1df915f4bd0d6e48a454d942c (patch) | |
tree | 98bb3160f80eaa390efd6ced451ba251a46691c7 /tools/pydfu.py | |
parent | 869024dd6e62905b7e1069b547856a769b3b24ba (diff) |
py/repl: Fix handling of unmatched brackets and unfinished quotes.
Before this patch:
>>> print(')
... ')
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
After this patch:
>>> print(')
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
This matches CPython and prevents getting stuck in REPL continuation when a
1-quote is unmatched.
Diffstat (limited to 'tools/pydfu.py')
0 files changed, 0 insertions, 0 deletions