[pypy-svn] r10359 - pypy/dist/pypy/tool
pedronis at codespeak.net
pedronis at codespeak.net
Wed Apr 6 13:16:14 CEST 2005
Author: pedronis
Date: Wed Apr 6 13:16:14 2005
New Revision: 10359
Modified:
pypy/dist/pypy/tool/uid.py
Log:
safer this way
Modified: pypy/dist/pypy/tool/uid.py
==============================================================================
--- pypy/dist/pypy/tool/uid.py (original)
+++ pypy/dist/pypy/tool/uid.py Wed Apr 6 13:16:14 2005
@@ -2,9 +2,10 @@
# This is temporary hack to run PyPy on PyPy
# until PyPy's struct module handle P format character.
-
-#HUGEVAL = 256 ** struct.calcsize('P')
-HUGEVAL = 0
+try:
+ HUGEVAL = 256 ** struct.calcsize('P')
+except struct.error:
+ HUGEVAL = 0
def fixid(result):
if result < 0:
More information about the pypy-svn
mailing list