mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE.
This commit is contained in:
parent
4a5a4c2808
commit
61006a2113
2 changed files with 4 additions and 1 deletions
|
|
@ -1611,7 +1611,7 @@ def run(self):
|
|||
try:
|
||||
try:
|
||||
_tokenize.tokenize(self.readline, self.tokeneater)
|
||||
except _tokenize.TokenError:
|
||||
except (_tokenize.TokenError, SyntaxError):
|
||||
# since we cut off the tokenizer early, we can trigger
|
||||
# spurious errors
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -164,6 +164,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #16504: IDLE now catches SyntaxErrors raised by tokenizer. Patch by
|
||||
Roger Serwy.
|
||||
|
||||
- Issue #16702: test_urllib2_localnet tests now correctly ignores proxies for
|
||||
localhost tests.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue