mirror of
https://github.com/python/cpython.git
synced 2025-12-11 19:40:17 +00:00
Jython doesn't have sys.setcheckinterval() - ignore it in that case.
This commit is contained in:
parent
3b8f60b700
commit
b1a8ef6297
1 changed files with 1 additions and 1 deletions
|
|
@ -860,7 +860,7 @@ python pybench.py -s p25.pybench -c p21.pybench
|
||||||
value = 2147483647
|
value = 2147483647
|
||||||
try:
|
try:
|
||||||
sys.setcheckinterval(value)
|
sys.setcheckinterval(value)
|
||||||
except NotImplementedError:
|
except (AttributeError, NotImplementedError):
|
||||||
print '* Python version doesn\'t support sys.setcheckinterval'
|
print '* Python version doesn\'t support sys.setcheckinterval'
|
||||||
else:
|
else:
|
||||||
print '* system check interval set to maximum: %s' % value
|
print '* system check interval set to maximum: %s' % value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue