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
6191a235
Commit
6191a235
authored
Apr 13, 2001
by
Ka-Ping Yee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use nturl2path to generate a file: URL to source files in Windows.
parent
79fa2b60
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Lib/pydoc.py
Lib/pydoc.py
+7
-3
No files found.
Lib/pydoc.py
View file @
6191a235
...
...
@@ -484,7 +484,11 @@ TT { font-family: lucida typewriter, lucida console, courier }
head = '
<
big
><
big
><
strong
>%
s
</
strong
></
big
></
big
>
' % linkedname
try:
path = inspect.getabsfile(object)
filelink = '
<
a
href
=
"file:%s"
>%
s
</
a
>
' % (path, path)
url = path
if sys.platform == '
win32
':
import nturl2path
url = nturl2path.pathname2url(path)
filelink = '
<
a
href
=
"file:%s"
>%
s
</
a
>
' % (url, path)
except TypeError:
filelink = '
(
built
-
in
)
'
info = []
...
...
@@ -1473,9 +1477,9 @@ class ModuleScanner(Scanner):
return
children
def
isnewpackage
(
self
,
(
dir
,
package
)):
inode
=
os
.
stat
(
dir
)[
1
]
# detect circular symbolic links
inode
=
os
.
path
.
exists
(
dir
)
and
os
.
stat
(
dir
)[
1
]
if
not
(
os
.
path
.
islink
(
dir
)
and
inode
in
self
.
inodes
):
self
.
inodes
.
append
(
inode
)
self
.
inodes
.
append
(
inode
)
# detect circular symbolic links
return
ispackage
(
dir
)
def
run
(
self
,
callback
,
key
=
None
,
completer
=
None
):
...
...
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