mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-21 06:41:00 +00:00
encode help text
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2267 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
fc1f85ae78
commit
b6213934f0
1 changed files with 2 additions and 1 deletions
|
|
@ -230,7 +230,8 @@ class LCOptionParser (optparse.OptionParser, object):
|
|||
|
||||
def print_help (self, file=None):
|
||||
"""print translated help text"""
|
||||
s = "%s\n%s\n%s\n%s" % (self.format_help(), Notes, Retval, Examples)
|
||||
s = u"%s\n%s\n%s\n%s" % (self.format_help(), Notes, Retval, Examples)
|
||||
s = s.encode("iso-8859-1", "replace")
|
||||
if os.name != 'posix':
|
||||
linkcheck.StringUtil.paginate(s)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue