mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 08:33:10 +00:00
use pydoc.pager()
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2511 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
b0b2e6e0db
commit
813e1955d9
4 changed files with 13 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
|||
2.8 "" (released xx.xx.xxxx)
|
||||
2.8 "Robots" (released 8.4.2005)
|
||||
|
||||
* Correct AttributeError in blacklist logger.
|
||||
Type: bugfix
|
||||
|
|
@ -15,6 +15,11 @@
|
|||
Type: feature
|
||||
Changed: setup.py, install-linkchecker.py, doc/en/index.txt
|
||||
|
||||
* Use pydoc.pager() in strformat.paginate() instead of rolling out
|
||||
our own paging algorithm.
|
||||
Type: feature
|
||||
Changed: linkcheck/strformat.py
|
||||
|
||||
2.7 "Million Dollar Baby" (released 30.3.2005)
|
||||
|
||||
* When a host has no MX record, fall back to A records as the mail
|
||||
|
|
|
|||
1
TODO
1
TODO
|
|
@ -23,4 +23,3 @@ Possible improvements people could work on:
|
|||
|
||||
- [BUGFIX] CGI parameters should also be splitted on semicolons, but
|
||||
the join routine must also use semicolons then where apropriate.
|
||||
|
||||
|
|
@ -25,6 +25,7 @@ import sys
|
|||
import os
|
||||
import time
|
||||
import urlparse
|
||||
import pydoc
|
||||
|
||||
|
||||
def unicode_safe (s, encoding="iso-8859-1"):
|
||||
|
|
@ -124,19 +125,11 @@ def get_line_number (s, index):
|
|||
return line
|
||||
|
||||
|
||||
def paginate (text, lines=22):
|
||||
def paginate (text):
|
||||
"""
|
||||
Print text in pages of lines.
|
||||
"""
|
||||
curline = 1
|
||||
for line in text.splitlines():
|
||||
print line
|
||||
curline += 1
|
||||
isatty = hasattr(sys.stdin, "isatty") and sys.stdin.isatty()
|
||||
if curline >= lines and isatty:
|
||||
curline = 1
|
||||
print "press return to continue..."
|
||||
sys.stdin.read(1)
|
||||
pydoc.pager(text)
|
||||
|
||||
|
||||
_markup_re = re.compile("<.*?>", re.DOTALL)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: calvin@users.sourceforge.net\n"
|
||||
"POT-Creation-Date: 2005-04-01 11:24+0200\n"
|
||||
"POT-Creation-Date: 2005-04-07 15:39+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
@ -621,15 +621,15 @@ msgstr ""
|
|||
msgid "extern%d: syntax error %s\n"
|
||||
msgstr ""
|
||||
|
||||
#: ../linkcheck/strformat.py:188
|
||||
#: ../linkcheck/strformat.py:181
|
||||
msgid "seconds"
|
||||
msgstr ""
|
||||
|
||||
#: ../linkcheck/strformat.py:191
|
||||
#: ../linkcheck/strformat.py:184
|
||||
msgid "minutes"
|
||||
msgstr ""
|
||||
|
||||
#: ../linkcheck/strformat.py:194
|
||||
#: ../linkcheck/strformat.py:187
|
||||
msgid "hours"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue