shadowbrokers-exploits/windows/fuzzbunch/pyreadline/keysyms/__init__.py
2017-04-14 11:45:07 +02:00

20 lines
No EOL
417 B
Python

import sys
success=False
in_ironpython="IronPython" in sys.version
if in_ironpython:
try:
from ironpython_keysyms import *
success=True
except ImportError,x:
raise
else:
try:
from keysyms import *
success=True
except ImportError,x:
pass
if not success:
raise ImportError("Could not import keysym for local pythonversion",x)