From: Kurt B. Kaiser Date: Sat, 14 Jul 2001 04:59:24 +0000 (+0000) Subject: py-cvs-2001_07_13 (Rel 1.9) merge X-Git-Tag: v2.2a3~1178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=752e4d55310655c22524e5d63319e18a1bf048b7;p=thirdparty%2FPython%2Fcpython.git py-cvs-2001_07_13 (Rel 1.9) merge "Taught IDLE's autoident parser that "yield" is a keyword that begins a stmt. Along w/ the preceding change to keyword.py, making all this work w/ a future-stmt just looks harder and harder." --tim_one (From Rel 1.8: "Hack to make this still work with Python 1.5.2. ;-( " --fdrake) --- diff --git a/Lib/idlelib/PyParse.py b/Lib/idlelib/PyParse.py index a51235620d75..c8212b214369 100644 --- a/Lib/idlelib/PyParse.py +++ b/Lib/idlelib/PyParse.py @@ -29,6 +29,7 @@ _synchre = re.compile(r""" | except | raise | import + | yield ) \b """, re.VERBOSE | re.MULTILINE).search