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 martin.panter
Recipients brett.cannon, eric.araujo, eric.snow, georg.brandl, kau8hik, martin.panter, mgedmin, python-dev, r.david.murray, sean.rodman, terry.reedy
Date 2016-06-11.06:03:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465625001.29.0.619262207219.issue16484@psf.upfronthosting.co.za>
In-reply-to
Content
My guess is the file.startswith(basedir) in the getdocloc() method is getting tricked by non-canonical paths (e.g. lowercase vs uppercase C: drive?). Would it help to use something like os.path.normcase(), or maybe os.path.commonpath(), pathlib.PurePath.parts or PurePath.relative_to()?

file = inspect.getabsfile(object)
...
basedir = os.path.normcase(basedir)
if (...
     (file.startswith(basedir) and ...

Also, in the new get_pydoc_link() function, is that os.path.join() call meant to be there?

basedir = os.path.join(dirname(dirname(__file__)))
History
Date User Action Args
2016-06-11 06:03:21martin.pantersetrecipients: + martin.panter, brett.cannon, georg.brandl, terry.reedy, mgedmin, eric.araujo, r.david.murray, python-dev, eric.snow, sean.rodman, kau8hik
2016-06-11 06:03:21martin.pantersetmessageid: <1465625001.29.0.619262207219.issue16484@psf.upfronthosting.co.za>
2016-06-11 06:03:21martin.panterlinkissue16484 messages
2016-06-11 06:03:20martin.pantercreate