Release 1.1 with Python 3 compatibility
This commit is contained in:
parent
716d7e844b
commit
1d942aaf46
16
README.rst
16
README.rst
|
@ -1,8 +1,8 @@
|
|||
|
||||
Python module to page screen output and get dimensions
|
||||
of available console space.
|
||||
Python module to page output to the screen and get console
|
||||
dimensions.
|
||||
|
||||
It is meant to be finally included into standard library
|
||||
It was meant to be included in standard library
|
||||
http://bugs.python.org/issue8408
|
||||
|
||||
| Author: anatoly techtonik <techtonik@gmail.com>
|
||||
|
@ -12,6 +12,11 @@ http://bugs.python.org/issue8408
|
|||
Status
|
||||
------
|
||||
|
||||
1.1 (stable)
|
||||
- Python 3 compatibility
|
||||
- echo() helper function for unbuffered output (in Py3
|
||||
output doesn't appear immediately on screen unless it
|
||||
ends with newline)
|
||||
1.0 (stable)
|
||||
- getch() now returns list of chars for special keys
|
||||
(fixes bug #1 when special key skipped several pages)
|
||||
|
@ -56,6 +61,11 @@ API
|
|||
page number with 'Press any key . . . ' prompt and waits for keypress.
|
||||
|
||||
|
||||
..function:: echo(msg)
|
||||
|
||||
Print msg to the screen without linefeed and flush the output.
|
||||
|
||||
|
||||
References
|
||||
----------
|
||||
|
||||
|
|
4
pager.py
4
pager.py
|
@ -14,7 +14,7 @@ Author: anatoly techtonik <techtonik@gmail.com>
|
|||
License: Public Domain (use MIT if Public Domain doesn't work for you)
|
||||
"""
|
||||
|
||||
__version__ = '1.1dev'
|
||||
__version__ = '1.1'
|
||||
|
||||
import os,sys
|
||||
|
||||
|
@ -189,7 +189,7 @@ def getch():
|
|||
|
||||
def echo(msg):
|
||||
"""
|
||||
Print msg to the screen without newline ending and flush the output.
|
||||
Print msg to the screen without linefeed and flush the output.
|
||||
|
||||
Standard print() function doesn't flush, see:
|
||||
https://groups.google.com/forum/#!topic/python-ideas/8vLtBO4rzBU
|
||||
|
|
4
setup.py
4
setup.py
|
@ -3,7 +3,7 @@ from distutils.core import setup
|
|||
|
||||
setup(
|
||||
name='pager',
|
||||
version='1.0',
|
||||
version='1.1',
|
||||
description='Terminal/console pager module for Python',
|
||||
long_description=open('README.rst').read(),
|
||||
py_modules=['pager'],
|
||||
|
@ -15,5 +15,7 @@ setup(
|
|||
'Environment :: Console',
|
||||
'License :: Public Domain',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 3',
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue