]> granicus.if.org Git - python/commitdiff
#6618: fix invalid 3k syntax.
authorGeorg Brandl <georg@python.org>
Mon, 3 Aug 2009 17:50:20 +0000 (17:50 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 3 Aug 2009 17:50:20 +0000 (17:50 +0000)
Doc/reference/expressions.rst

index 1bddd931e6cb4bf5c56f3b4a5fdf9e019756f684..cdb802a73e97bb4d1193a213a90aa54ec90acd79 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.")