]> granicus.if.org Git - python/commitdiff
Macintosh compatibility.
authorKa-Ping Yee <ping@zesty.ca>
Tue, 27 Feb 2001 23:36:29 +0000 (23:36 +0000)
committerKa-Ping Yee <ping@zesty.ca>
Tue, 27 Feb 2001 23:36:29 +0000 (23:36 +0000)
Lib/pydoc.py

index c864867f8ac38cfe176e7fec6b1e5fee0dad9668..c5c9d1866f15358d269aef3e2fabbce2e66c72de 100755 (executable)
@@ -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]