[pypy-svn] r51008 - pypy/dist/pypy/lib/_ctypes

fijal at codespeak.net fijal at codespeak.net
Fri Jan 25 01:47:30 CET 2008


Author: fijal
Date: Fri Jan 25 01:47:29 2008
New Revision: 51008

Modified:
   pypy/dist/pypy/lib/_ctypes/function.py
Log:
Small tweak


Modified: pypy/dist/pypy/lib/_ctypes/function.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/function.py	(original)
+++ pypy/dist/pypy/lib/_ctypes/function.py	Fri Jan 25 01:47:29 2008
@@ -100,10 +100,10 @@
                 res.append(c_void_p)
             elif arg == 0:
                 res.append(c_void_p)
-            elif isinstance(arg, int):
+            elif isinstance(arg, (int, long)):
                 res.append(c_int)
             else:
-                raise TypeError("Dont know how to handle %s" % (arg,))
+                raise TypeError("Don't know how to handle %s" % (arg,))
         return res
 
     def _wrap_args(self, argtypes, args):



More information about the Pypy-commit mailing list