Ezio Melotti <ezio.melotti(a)gmail.com> added the comment:
This should be fixed now, thanks for the report.
FTR with Sphinx 1.0 all the links to :class:`time` and also :class:`datetime` needed to be fixed because they were pointing to the modules, with 0.6 only the :class:`time` in the body of attribute/method directives were broken.
----------
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue13076>
_______________________________________
Roundup Robot <devnull(a)psf.upfronthosting.co.za> added the comment:
New changeset 854e31d80151 by Ezio Melotti in branch '2.7':
#13076: fix links to datetime.time.
http://hg.python.org/cpython/rev/854e31d80151
New changeset 95689ed69097 by Ezio Melotti in branch '3.2':
#13076: fix links to datetime.time and datetime.datetime.
http://hg.python.org/cpython/rev/95689ed69097
New changeset 175cd2a51ea9 by Ezio Melotti in branch 'default':
#13076: merge with 3.2.
http://hg.python.org/cpython/rev/175cd2a51ea9
----------
nosy: +python-dev
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue13076>
_______________________________________
Georg Brandl <georg(a)python.org> added the comment:
No, it's not, it's how Sphinx works. Use :class:`.time` to refer to the datetime class.
----------
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue13076>
_______________________________________
Ezio Melotti <ezio.melotti(a)gmail.com> added the comment:
The broken links seem to be only in the "time objects" section, and only in the body of attribute/method directives.
The attached patch fixes the issue by using :class:`~datetime.time` explicitly where the links are broken.
Georg, is this a bug in Sphinx?
----------
assignee: docs@python -> ezio.melotti
keywords: +patch
nosy: +ezio.melotti, georg.brandl
stage: needs patch -> patch review
Added file: http://bugs.python.org/file23292/issue13076.diff
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue13076>
_______________________________________