summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-08-03 17:50:20 (GMT)
committerGeorg Brandl <georg@python.org>2009-08-03 17:50:20 (GMT)
commitfe800a3437b55333dd5d4c21d071c699126830a8 (patch)
treeed78198d32f038733119d196aa9cb5a3e277fe6f
parent0d0367f76fc9c99b92bb75c4125fd35ee493828a (diff)
downloadcpython-fe800a3437b55333dd5d4c21d071c699126830a8.zip
cpython-fe800a3437b55333dd5d4c21d071c699126830a8.tar.gz
cpython-fe800a3437b55333dd5d4c21d071c699126830a8.tar.bz2
#6618: fix invalid 3k syntax.
-rw-r--r--Doc/reference/expressions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 1bddd93..cdb802a 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -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.")