[Python-checkins] python/dist/src/Lib pydoc.py,1.90,1.91

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Sun Jun 6 22:40:07 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26291

Modified Files:
	pydoc.py 
Log Message:
correct name error caught by Neal Norwitz with pychecker


Index: pydoc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pydoc.py,v
retrieving revision 1.90
retrieving revision 1.91
diff -C2 -d -r1.90 -r1.91
*** pydoc.py	29 Jan 2004 06:37:49 -0000	1.90
--- pydoc.py	7 Jun 2004 02:40:05 -0000	1.91
***************
*** 323,331 ****
               (file.startswith(basedir) and
                not file.startswith(os.path.join(basedir, 'site-packages'))))):
              if docloc.startswith("http://"):
!                 docloc = (docloc.rstrip("/") +
!                           "/module-%s.html" % object.__name__)
              else:
!                 docloc = os.path.join(docloc, "module-%s.html" % name)
          else:
              docloc = None
--- 323,331 ----
               (file.startswith(basedir) and
                not file.startswith(os.path.join(basedir, 'site-packages'))))):
+             htmlfile = "module-%s.html" % object.__name__
              if docloc.startswith("http://"):
!                 docloc = "%s/%s" % (docloc.rstrip("/"), htmlfile)
              else:
!                 docloc = os.path.join(docloc, htmlfile)
          else:
              docloc = None




More information about the Python-checkins mailing list