New submission from Eric Galloway:

In Python 3 on Windows, pydoc fails to display source file listings in the 
browser.

To reproduce in Python 3.4:

   1. start pydoc:
   
   python -m pydoc -p 8888

   2. Navigate to the url: 
   
   http://127.0.0.1:8888/getfile?key=///C:/python34/lib/pydoc.py

The error message:

    getfile?key=///C:/python34/lib/pydoc.py
                FileNotFoundError: [Errno 2] No such file or directory: 
'///C:/python34/lib/pydoc.py'
            
The url passed to html_getfile needs to be converted into a NT pathname.

----------
components: Library (Lib)
files: diff.txt
messages: 222599
nosy: Eric.Galloway
priority: normal
severity: normal
status: open
title: pydoc source not displayed in browser on Windows
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35910/diff.txt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21942>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to