Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit