diff options
author | Ka-Ping Yee <ping@zesty.ca> | 2001-02-27 23:36:29 (GMT) |
---|---|---|
committer | Ka-Ping Yee <ping@zesty.ca> | 2001-02-27 23:36:29 (GMT) |
commit | 457aab237f311633513f4947294babd71ac2112e (patch) | |
tree | e1239d12db8dda0ff78c2c219ff0801a5bd82160 | |
parent | 5e2b173333e6fabb5883c1e775a5ecace8a48660 (diff) | |
download | cpython-457aab237f311633513f4947294babd71ac2112e.zip cpython-457aab237f311633513f4947294babd71ac2112e.tar.gz cpython-457aab237f311633513f4947294babd71ac2112e.tar.bz2 |
Macintosh compatibility.
-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] |