From 9ed09fb3c158d90b86ea4a358ab0df482cd29ebb Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Fri, 6 Sep 2013 15:07:03 +0300 Subject: [PATCH 1/2] Fix issue #6 - "2.1, 3.0-3.2 Broken on Linux", prepare 2.2 --- README.rst | 8 +++++++- pager.py | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index eb463b2..888c4ce 100644 --- a/README.rst +++ b/README.rst @@ -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 ---------- diff --git a/pager.py b/pager.py index ab77de4..df52d17 100755 --- a/pager.py +++ b/pager.py @@ -14,7 +14,7 @@ Author: anatoly techtonik 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__ = \ """ From 0c598316bf84556e05ec12a4991f57acc06aad30 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Fri, 6 Sep 2013 15:11:40 +0300 Subject: [PATCH 2/2] Added tag 2.2 for changeset dc4f153011d0 --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index d3d73d7..7f30380 100644 --- a/.hgtags +++ b/.hgtags @@ -7,3 +7,4 @@ f865166a668bfff2680e402617bf05063951f1b7 1.0 d7a4db243440502194252613c03609891f764da9 1.3 b03321d13f9adeffff16efd78640f563e7fefbe5 1.4 270f1eebaf1a05340fc2b9107b75211b2f489e9d 2.0 +dc4f153011d0f97f35532cc75a09f2402b2e8943 2.2