diff options
| author | Georg Brandl <georg@python.org> | 2009-04-26 09:56:44 (GMT) | 
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-04-26 09:56:44 (GMT) | 
| commit | 438192540d14f6d5de7a2effc6c9958ab6e5a1c6 (patch) | |
| tree | 483e2e70924c95c97c3a345a0375a0380f6a964d /Lib/pydoc.py | |
| parent | 0d478c455bad145b6e16d58f60667870e9a72456 (diff) | |
| download | cpython-438192540d14f6d5de7a2effc6c9958ab6e5a1c6.zip cpython-438192540d14f6d5de7a2effc6c9958ab6e5a1c6.tar.gz cpython-438192540d14f6d5de7a2effc6c9958ab6e5a1c6.tar.bz2  | |
Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/.
Diffstat (limited to 'Lib/pydoc.py')
| -rwxr-xr-x | Lib/pydoc.py | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 3afb981..a70f016 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1533,11 +1533,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. @@ -1821,11 +1821,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)) @@ -1837,7 +1837,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  | 
