Re: [Python-Dev] [Python-checkins] cpython (merge 2.7 -> 2.7): Null merge.
On Thu, Dec 27, 2012 at 12:05 PM, serhiy.storchaka
http://hg.python.org/cpython/rev/26eb2979465c changeset: 81094:26eb2979465c branch: 2.7 parent: 81086:ccbb16719540 parent: 81090:d3c81ef728ae user: Serhiy Storchaka
date: Thu Dec 27 22:00:12 2012 +0200 summary: Null merge.
Great to see your first check-ins, Serhiy. Congratulations! I think for this case we usually say "Merge heads," which is different from the case of a null merge (i.e. where the diff is empty, for example when registering that a 3.x commit should not be forward-ported to a later version). --Chris
files: Lib/idlelib/EditorWindow.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -1611,7 +1611,7 @@ 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 diff --git a/Misc/NEWS b/Misc/NEWS --- a/Misc/NEWS +++ b/Misc/NEWS @@ -168,6 +168,9 @@ 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.
-- Repository URL: http://hg.python.org/cpython
_______________________________________________ Python-checkins mailing list Python-checkins@python.org http://mail.python.org/mailman/listinfo/python-checkins
participants (1)
-
Chris Jerdonek