summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-27 16:28:57 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-27 16:28:57 (GMT)
commit5617db86c39fa92f4acd2b2b93e9890791469f9f (patch)
tree6c01aac783bbaa512e761bd1dd115a9419b124cc /Lib/pydoc.py
parent4e869c7e5b007b4f215eccdf6b2e42ac944c05a4 (diff)
downloadcpython-5617db86c39fa92f4acd2b2b93e9890791469f9f.zip
cpython-5617db86c39fa92f4acd2b2b93e9890791469f9f.tar.gz
cpython-5617db86c39fa92f4acd2b2b93e9890791469f9f.tar.bz2
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/. ........
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 41dd6dd..dd4fdfd 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1530,11 +1530,11 @@ class Helper:
# These dictionaries map a topic name to either an alias, or a tuple
# (label, seealso-items). The "label" is the label of the corresponding
# section in the .rst file under Doc/ and an index into the dictionary
- # in pydoc_topics.py.
+ # in pydoc_data/topics.py.
#
# CAUTION: if you change one of these dictionaries, be sure to adapt the
# list of needed labels in Doc/tools/sphinxext/pyspecific.py and
- # regenerate the pydoc_topics.py file by running
+ # regenerate the pydoc_data/topics.py file by running
# make pydoc-topics
# in Doc/ and copying the output file into the Lib/ directory.
@@ -1809,11 +1809,11 @@ Here is a list of available topics. Enter any topic name to get more help.
def showtopic(self, topic, more_xrefs=''):
try:
- import pydoc_topics
+ import pydoc_data.topics
except ImportError:
self.output.write('''
Sorry, topic and keyword documentation is not available because the
-module "pydoc_topics" could not be found.
+module "pydoc_data.topics" could not be found.
''')
return
target = self.topics.get(topic, self.keywords.get(topic))
@@ -1825,7 +1825,7 @@ module "pydoc_topics" could not be found.
label, xrefs = target
try:
- doc = pydoc_topics.topics[label]
+ doc = pydoc_data.topics.topics[label]
except KeyError:
self.output.write('no documentation found for %s\n' % repr(topic))
return