core: cProfile is not available in 2.4.

pull/564/head
David Wilson 6 years ago
parent e703522010
commit 5ae7464011

@ -36,7 +36,6 @@ bootstrap implementation sent to every new slave context.
import binascii import binascii
import collections import collections
import cProfile
import encodings.latin_1 import encodings.latin_1
import errno import errno
import fcntl import fcntl
@ -64,6 +63,11 @@ import imp
# Absolute imports for <2.5. # Absolute imports for <2.5.
select = __import__('select') select = __import__('select')
try:
import cProfile
except ImportError:
cProfile = None
try: try:
import thread import thread
except ImportError: except ImportError:

Loading…
Cancel
Save