summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2001-02-27 23:36:29 (GMT)
committerKa-Ping Yee <ping@zesty.ca>2001-02-27 23:36:29 (GMT)
commit457aab237f311633513f4947294babd71ac2112e (patch)
treee1239d12db8dda0ff78c2c219ff0801a5bd82160
parent5e2b173333e6fabb5883c1e775a5ecace8a48660 (diff)
downloadcpython-457aab237f311633513f4947294babd71ac2112e.zip
cpython-457aab237f311633513f4947294babd71ac2112e.tar.gz
cpython-457aab237f311633513f4947294babd71ac2112e.tar.bz2
Macintosh compatibility.
-rwxr-xr-xLib/pydoc.py2
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]