1. liquibits
  2. pystacia

Commits

squ...@squeaky  committed eb30f29

use py3.2 compat syntax

  • Participants
  • Parent commits 15bb79f
  • Branches default

Comments (0)

Files changed (1)

File pystacia/api/jnatypes.py

View file
  • Ignore whitespace
+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