mirror of
https://github.com/python/cpython
synced 2024-09-20 00:01:58 +00:00
Macintosh compatibility.
This commit is contained in:
parent
5e2b173333
commit
457aab237f
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue