[Python-checkins] r67693 - python/branches/release25-maint/Lib/pydoc.py
andrew.kuchling
python-checkins at python.org
Thu Dec 11 03:09:36 CET 2008
Author: andrew.kuchling
Date: Thu Dec 11 03:09:36 2008
New Revision: 67693
Log:
#4259: update the URL pattern for module documentation
Modified:
python/branches/release25-maint/Lib/pydoc.py
Modified: python/branches/release25-maint/Lib/pydoc.py
==============================================================================
--- python/branches/release25-maint/Lib/pydoc.py (original)
+++ python/branches/release25-maint/Lib/pydoc.py Thu Dec 11 03:09:36 2008
@@ -27,7 +27,7 @@
Module docs for core modules are assumed to be in
- http://www.python.org/doc/current/lib/
+ http://www.python.org/doc/<version>/lib/
This can be overridden by setting the PYTHONDOCS environment variable
to a different URL or to a local directory containing the Library
@@ -345,8 +345,9 @@
except TypeError:
file = '(built-in)'
+ version = '.'.join(str(v) for v in sys.version_info[:3])
docloc = os.environ.get("PYTHONDOCS",
- "http://www.python.org/doc/current/lib")
+ "http://www.python.org/doc/%s/lib" % version)
basedir = os.path.join(sys.exec_prefix, "lib",
"python"+sys.version[0:3])
if (isinstance(object, type(os)) and
More information about the Python-checkins
mailing list