aboutsummaryrefslogtreecommitdiff
blob: e08747acf463df60bab75617143982ad87a2eee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""readline - Importing this module enables command line editing using
the pyrepl library.  The API is a subset of the GNU readline library.
It also contains extensions for multiline input.

Note that some of the functions present in the CPython module 'readline'
are only stubs at the moment.
"""

try:
    from pyrepl.readline import *
except ImportError:
    import sys
    if sys.platform == 'win32':
        raise ImportError("the 'readline' module is not available on Windows"
                          " (on either PyPy or CPython)")
    raise