Fix issue #6 - "2.1, 3.0-3.2 Broken on Linux", prepare 2.2
This commit is contained in:
parent
4883988e63
commit
9ed09fb3c1
|
@ -21,7 +21,12 @@ Demo
|
|||
|
||||
Status
|
||||
------
|
||||
2.1 (stable)
|
||||
2.2 (stable)
|
||||
- Linux: fix regression in version 2.1 - wrong name for
|
||||
_get_unix call produced NameError on this platform
|
||||
(issue #6, thanks Calvin Spealman for report)
|
||||
|
||||
2.1 (broken on Linux)
|
||||
- split getch() into _getch_unix() and _getch_windows()
|
||||
and detect correct flavor at import time (speedup)
|
||||
|
||||
|
@ -112,6 +117,7 @@ Credits
|
|||
Danny Yoo for getch()-like unbuffered character reading recipe
|
||||
http://code.activestate.com/recipes/134892-getch-like-unbuffered/
|
||||
|
||||
ironfroggy
|
||||
|
||||
References
|
||||
----------
|
||||
|
|
4
pager.py
4
pager.py
|
@ -14,7 +14,7 @@ Author: anatoly techtonik <techtonik@gmail.com>
|
|||
License: Public Domain (use MIT if the former doesn't work for you)
|
||||
"""
|
||||
|
||||
__version__ = '2.1'
|
||||
__version__ = '2.2'
|
||||
|
||||
import os,sys
|
||||
|
||||
|
@ -246,7 +246,7 @@ def _getch_unix(): # [ ] _getch_linux()? (test on FreeBSD and MacOS)
|
|||
if WINDOWS:
|
||||
getch = _getch_windows
|
||||
else:
|
||||
getch = _getch_linux
|
||||
getch = _getch_unix
|
||||
|
||||
getch.__doc__ = \
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue