mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Merged revisions 71960 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71960 | georg.brandl | 2009-04-26 11:56:44 +0200 (So, 26 Apr 2009) | 1 line Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/. ........
This commit is contained in:
parent
4e869c7e5b
commit
5617db86c3
6 changed files with 94 additions and 88 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
Sphinx extension with Python doc-specific markup.
|
||||
|
||||
:copyright: 2008 by Georg Brandl.
|
||||
:copyright: 2008, 2009 by Georg Brandl.
|
||||
:license: Python license.
|
||||
"""
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ class PydocTopicsBuilder(Builder):
|
|||
self.topics[label] = str(writer.output)
|
||||
|
||||
def finish(self):
|
||||
f = open(path.join(self.outdir, 'pydoc_topics.py'), 'w')
|
||||
f = open(path.join(self.outdir, 'topics.py'), 'w')
|
||||
try:
|
||||
f.write('# Autogenerated by Sphinx on %s\n' % asctime())
|
||||
f.write('topics = ' + pformat(self.topics) + '\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue