diff options
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index c864867..c5c9d18 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -849,7 +849,7 @@ def ttypager(text): old = tty.tcgetattr(fd) tty.setcbreak(fd) getchar = lambda: sys.stdin.read(1) - except ImportError: + except (ImportError, AttributeError): tty = None getchar = lambda: sys.stdin.readline()[:-1][:1] |