]> granicus.if.org Git - python/commitdiff
Merged revisions 74297 via svnmerge from
authorGeorg Brandl <georg@python.org>
Mon, 3 Aug 2009 17:51:12 +0000 (17:51 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 3 Aug 2009 17:51:12 +0000 (17:51 +0000)
svn+ssh://svn.python.org/python/branches/py3k

........
  r74297 | georg.brandl | 2009-08-03 19:50:20 +0200 (Mo, 03 Aug 2009) | 1 line

  #6618: fix invalid 3k syntax.
........

Doc/reference/expressions.rst

index 79c87be3e254406b0e293c293772a6f3ad5d82f2..b02c6969d2cea2da9080587d385beb91679a067f 100644 (file)
@@ -416,7 +416,7 @@ generator functions::
    ...         while True:
    ...             try:
    ...                 value = (yield value)
-   ...             except Exception, e:
+   ...             except Exception as e:
    ...                 value = e
    ...     finally:
    ...         print("Don't forget to clean up when 'close()' is called.")