[pypy-svn] pypy jitypes2: don't crash if shape is a tuple
antocuni
commits-noreply at bitbucket.org
Mon Dec 20 13:17:09 CET 2010
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40140:f386dfcd5ef8
Date: 2010-12-20 13:15 +0100
http://bitbucket.org/pypy/pypy/changeset/f386dfcd5ef8/
Log: don't crash if shape is a tuple
diff --git a/lib_pypy/_ctypes/function.py b/lib_pypy/_ctypes/function.py
--- a/lib_pypy/_ctypes/function.py
+++ b/lib_pypy/_ctypes/function.py
@@ -247,7 +247,7 @@
try:
return self._typemap[shape]
except KeyError:
- print 'unknown shape %s' % shape
+ print 'unknown shape %s' % (shape,)
assert False, 'TODO5'
More information about the Pypy-commit
mailing list