Roundup Robot added the comment:
New changeset 50808dffd0bb by Serhiy Storchaka in branch '2.7':
Issue #22314: pydoc now works when the LINES environment variable is set.
https://hg.python.org/cpython/rev/50808dffd0bb
New changeset c6182a7e75fa by Serhiy Storchaka in branch '3.4':
Issue #22314:
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22314
___
Serhiy Storchaka added the comment:
Here is a patch.
--
keywords: +patch
nosy: +serhiy.storchaka
stage: - patch review
type: - behavior
versions: +Python 3.4, Python 3.5
Added file: http://bugs.python.org/file37219/pydoc_ttypager_lines.patch
___
New submission from Armin Rigo:
$ LINES=20 python Lib/test/test_pydoc.py
...
File .../Lib/pydoc.py, line 1448, in ttypager
r = inc = os.environ.get('LINES', 25) - 1
TypeError: unsupported operand type(s) for -: 'str' and 'int'
duh.
--
components: Library (Lib)
messages: 226177