Commits

Anonymous committed eb30f29

use py3.2 compat syntax

Comments (0)

Files changed (1)

pystacia/api/jnatypes.py

+from sys import exc_info
 import ctypes
 
 from java.lang import UnsatisfiedLinkError  # @UnresolvedImport
     def __getattr__(self, name):
         try:
             return Function(getattr(self._dll, name))
-        except NameError, e:
-            raise AttributeError(e)
+        except NameError:
+            raise AttributeError(exc_info()[1])
 
 
 @memoized