Commit 457aab23 authored by Ka-Ping Yee's avatar Ka-Ping Yee

Macintosh compatibility.

parent 5e2b1733
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment