From: Marc-André Lemburg Date: Sat, 13 Jan 2007 23:15:33 +0000 (+0000) Subject: Jython doesn't have sys.setcheckinterval() - ignore it in that case. X-Git-Tag: v2.6a1~2276 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1a8ef629753ddfd23968a4418669ebbda83c835;p=thirdparty%2FPython%2Fcpython.git Jython doesn't have sys.setcheckinterval() - ignore it in that case. --- diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py index 7fff0650afe1..d2da6098627f 100755 --- a/Tools/pybench/pybench.py +++ b/Tools/pybench/pybench.py @@ -860,7 +860,7 @@ python pybench.py -s p25.pybench -c p21.pybench 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