]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
py-cvs-2001_07_13 (Rel 1.9) merge
authorKurt B. Kaiser <kbk@shore.net>
Sat, 14 Jul 2001 04:59:24 +0000 (04:59 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Sat, 14 Jul 2001 04:59:24 +0000 (04:59 +0000)
"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)

Lib/idlelib/PyParse.py

index a51235620d75f4c1ea1f9a867faf8e40bb474a4f..c8212b2143691bc7a910bbe89057ebc2e6753fc4 100644 (file)
@@ -29,6 +29,7 @@ _synchre = re.compile(r"""
     |   except
     |   raise
     |   import
+    |   yield
     )
     \b
 """, re.VERBOSE | re.MULTILINE).search