diff options
| author | Ka-Ping Yee <ping@zesty.ca> | 2001-02-27 23:36:29 +0000 |
|---|---|---|
| committer | Ka-Ping Yee <ping@zesty.ca> | 2001-02-27 23:36:29 +0000 |
| commit | c00f0d1d7f258f5e931e368971c4788ee3033ecd (patch) | |
| tree | 61e21e8a19382d7ab43b38313132f5fd4ec58caf /Lib/pydoc.py | |
| parent | c471d051604e0a79bed55a3a36fef334d9849d4f (diff) | |
| download | cpython-c00f0d1d7f258f5e931e368971c4788ee3033ecd.tar.gz | |
Macintosh compatibility.
Diffstat (limited to 'Lib/pydoc.py')
| -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 c864867f8a..c5c9d1866f 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] |
