[Python-checkins] r53416 - python/trunk/Tools/pybench/pybench.py

marc-andre.lemburg python-checkins at python.org
Sun Jan 14 00:15:33 CET 2007


Author: marc-andre.lemburg
Date: Sun Jan 14 00:15:33 2007
New Revision: 53416

Modified:
   python/trunk/Tools/pybench/pybench.py
Log:
Jython doesn't have sys.setcheckinterval() - ignore it in that case.



Modified: python/trunk/Tools/pybench/pybench.py
==============================================================================
--- python/trunk/Tools/pybench/pybench.py	(original)
+++ python/trunk/Tools/pybench/pybench.py	Sun Jan 14 00:15:33 2007
@@ -860,7 +860,7 @@
             value = 2147483647
             try:
                 sys.setcheckinterval(value)
-            except NotImplementedError:
+            except (AttributeError, NotImplementedError):
                 print '* Python version doesn\'t support sys.setcheckinterval'
             else:
                 print '* system check interval set to maximum: %s' % value


More information about the Python-checkins mailing list