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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1a8ef629753ddfd23968a4418669ebbda83c835;p=python Jython doesn't have sys.setcheckinterval() - ignore it in that case. --- diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py index 7fff0650af..d2da609862 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