Fix issue #6 - "2.1, 3.0-3.2 Broken on Linux", prepare 2.2

This commit is contained in:
anatoly techtonik 2013-09-06 15:07:03 +03:00
parent 4883988e63
commit 9ed09fb3c1
2 changed files with 9 additions and 3 deletions

View File

@ -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
----------

View File

@ -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__ = \
"""