Andrew Kuchling  committed b089a57

#4259: update the URL pattern for module documentation

  • Participants
  • Parent commits a6ddd94
  • Branches 2.5

Comments (0)

Files changed (1)

File Lib/

 Module docs for core modules are assumed to be in
 This can be overridden by setting the PYTHONDOCS environment variable
 to a different URL or to a local directory containing the Library
         except TypeError:
             file = '(built-in)'
+        version = '.'.join(str(v) for v in sys.version_info[:3])
         docloc = os.environ.get("PYTHONDOCS",
-                                "")
+                                "" % version)
         basedir = os.path.join(sys.exec_prefix, "lib",
         if (isinstance(object, type(os)) and