mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/.
This commit is contained in:
parent
0d478c455b
commit
438192540d
5 changed files with 11 additions and 11 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.
|
||||
"""
|
||||
|
||||
|
@ -89,7 +89,7 @@ class PydocTopicsBuilder(Builder):
|
|||
self.topics[label] = 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