diff --git a/mitogen/core.py b/mitogen/core.py index 602b84d8..3694342c 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -36,7 +36,6 @@ bootstrap implementation sent to every new slave context. import binascii import collections -import cProfile import encodings.latin_1 import errno import fcntl @@ -64,6 +63,11 @@ import imp # Absolute imports for <2.5. select = __import__('select') +try: + import cProfile +except ImportError: + cProfile = None + try: import thread except ImportError: