[pypy-commit] cffi default: Python 3 compat
arigo
noreply at buildbot.pypy.org
Fri May 10 23:00:47 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1251:90ccc47c31d2
Date: 2013-05-10 23:00 +0200
http://bitbucket.org/cffi/cffi/changeset/90ccc47c31d2/
Log: Python 3 compat
diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -372,7 +372,7 @@
BType = ffi._get_cached_btype(tp)
try:
value = backendlib.load_function(BType, name)
- except KeyError, e:
+ except KeyError as e:
raise AttributeError('%s: %s' % (name, e))
library.__dict__[name] = value
return
More information about the pypy-commit
mailing list