Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2443efb7
Commit
2443efb7
authored
Dec 11, 2008
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#4259: update the URL pattern for module documentation
parent
6f5d3f32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/pydoc.py
Lib/pydoc.py
+3
-2
No files found.
Lib/pydoc.py
View file @
2443efb7
...
...
@@ -27,7 +27,7 @@ to a file named "<name>.html".
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 @@ class Doc:
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment