[pypy-commit] pypy py3k: fix syntax
antocuni
noreply at buildbot.pypy.org
Fri Feb 24 20:13:41 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52884:706cd6dcfd7f
Date: 2012-02-24 20:06 +0100
http://bitbucket.org/pypy/pypy/changeset/706cd6dcfd7f/
Log: fix syntax
diff --git a/pypy/module/__builtin__/test/test_descriptor.py b/pypy/module/__builtin__/test/test_descriptor.py
--- a/pypy/module/__builtin__/test/test_descriptor.py
+++ b/pypy/module/__builtin__/test/test_descriptor.py
@@ -323,7 +323,7 @@
for attr in "__doc__", "fget", "fset", "fdel":
try:
setattr(raw, attr, 42)
- except TypeError, msg:
+ except TypeError as msg:
if str(msg).find('readonly') < 0:
raise Exception("when setting readonly attr %r on a "
"property, got unexpected TypeError "
More information about the pypy-commit
mailing list