<filename>pyreadline3/keysyms/__init__.py<gh_stars>1-10
from __future__ import absolute_import, print_function, unicode_literals

import sys

from . import winconstants

success = False
in_ironpython = "IronPython" in sys.version

if in_ironpython:
    try:
        from .ironpython_keysyms import *
        success = True
    except ImportError as x:
        raise
else:
    try:
        from .keysyms import *
        success = True
    except ImportError as x:
        pass

if not success:
    raise ImportError("Could not import keysym for local pythonversion", x)

<filename>pyreadline3/keysyms/__init__.py<gh_stars>1-10
from __future__ import absolute_import, print_function, unicode_literals

import sys

from . import winconstants

success = False
in_ironpython = "IronPython" in sys.version

if in_ironpython:
    try:
        from .ironpython_keysyms import *
        success = True
    except ImportError as x:
        raise
else:
    try:
        from .keysyms import *
        success = True
    except ImportError as x:
        pass

if not success:
    raise ImportError("Could not import keysym for local pythonversion", x)
