Source code for try_psyco
'''enable psyco JIT'ing if available'''
# pylint: disable=F0401
# F0401: Don't stress if we can't import psyco; it doesn't help that much, and isn't available for everything
try:
import psyco
except ImportError:
HAVE_PSYCO = False
else:
HAVE_PSYCO = True