[New-bugs-announce] [issue25184] "python -m pydoc -w" fails in nondecodable directory
Serhiy Storchaka
report at bugs.python.org
Sat Sep 19 23:07:25 CEST 2015
New submission from Serhiy Storchaka:
$ pwd
/home/serhiy/py/cpy�thon-3.5
$ ./python -m pydoc -w pydoc
Traceback (most recent call last):
File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/pydoc.py", line 2648, in <module>
cli()
File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/pydoc.py", line 2611, in cli
writedoc(arg)
File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/pydoc.py", line 1642, in writedoc
page = html.page(describe(object), html.document(object, name))
File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/pydoc.py", line 370, in document
if inspect.ismodule(object): return self.docmodule(*args)
File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/pydoc.py", line 651, in docmodule
url = urllib.parse.quote(path)
File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/urllib/parse.py", line 706, in quote
string = string.encode(encoding, errors)
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcff' in position 19: surrogates not allowed
----------
components: Library (Lib)
messages: 251117
nosy: orsenthil, serhiy.storchaka
priority: normal
severity: normal
status: open
title: "python -m pydoc -w" fails in nondecodable directory
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25184>
_______________________________________
More information about the New-bugs-announce
mailing list