This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Eric.Galloway
Recipients Eric.Galloway
Date 2014-07-09.03:13:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404875594.67.0.480533952364.issue21942@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-07-09 03:13:14Eric.Gallowaysetrecipients: + Eric.Galloway
2014-07-09 03:13:14Eric.Gallowaysetmessageid: <1404875594.67.0.480533952364.issue21942@psf.upfronthosting.co.za>
2014-07-09 03:13:14Eric.Gallowaylinkissue21942 messages
2014-07-09 03:13:14Eric.Gallowaycreate