Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
64df4a1c
Commit
64df4a1c
authored
Dec 27, 2012
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE.
Patch by Roger Serwy.
parents
e261055e
07e0e06f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Lib/idlelib/EditorWindow.py
Lib/idlelib/EditorWindow.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/idlelib/EditorWindow.py
View file @
64df4a1c
...
@@ -1621,7 +1621,7 @@ class IndentSearcher(object):
...
@@ -1621,7 +1621,7 @@ class IndentSearcher(object):
tokens
=
_tokenize
.
generate_tokens
(
self
.
readline
)
tokens
=
_tokenize
.
generate_tokens
(
self
.
readline
)
for
token
in
tokens
:
for
token
in
tokens
:
self
.
tokeneater
(
*
token
)
self
.
tokeneater
(
*
token
)
except
_tokenize
.
TokenError
:
except
(
_tokenize
.
TokenError
,
SyntaxError
)
:
# since we cut off the tokenizer early, we can trigger
# since we cut off the tokenizer early, we can trigger
# spurious errors
# spurious errors
pass
pass
...
...
Misc/NEWS
View file @
64df4a1c
...
@@ -117,6 +117,9 @@ Core and Builtins
...
@@ -117,6 +117,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #16504: IDLE now catches SyntaxErrors raised by tokenizer. Patch by
Roger Serwy.
- Issue #16618: Make glob.glob match consistently across strings and bytes
- Issue #16618: Make glob.glob match consistently across strings and bytes
regarding leading dots. Patch by Serhiy Storchaka.
regarding leading dots. Patch by Serhiy Storchaka.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment