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
7a1af770
Commit
7a1af770
authored
Aug 14, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1536071: trace.py should now find the full module name of a
file correctly even on Windows.
parent
85fec591
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Lib/trace.py
Lib/trace.py
+3
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/trace.py
View file @
7a1af770
...
@@ -179,9 +179,11 @@ def fullmodname(path):
...
@@ -179,9 +179,11 @@ def fullmodname(path):
# looking in sys.path for the longest matching prefix. We'll
# looking in sys.path for the longest matching prefix. We'll
# assume that the rest is the package name.
# assume that the rest is the package name.
comparepath
=
os
.
path
.
normcase
(
path
)
longest
=
""
longest
=
""
for
dir
in
sys
.
path
:
for
dir
in
sys
.
path
:
if
path
.
startswith
(
dir
)
and
path
[
len
(
dir
)]
==
os
.
path
.
sep
:
dir
=
os
.
path
.
normcase
(
dir
)
if
comparepath
.
startswith
(
dir
)
and
comparepath
[
len
(
dir
)]
==
os
.
sep
:
if
len
(
dir
)
>
len
(
longest
):
if
len
(
dir
)
>
len
(
longest
):
longest
=
dir
longest
=
dir
...
...
Misc/NEWS
View file @
7a1af770
...
@@ -64,6 +64,9 @@ Core and builtins
...
@@ -64,6 +64,9 @@ Core and builtins
Library
Library
-------
-------
- Patch #1536071: trace.py should now find the full module name of a
file correctly even on Windows.
- logging'
s
atexit
hook
now
runs
even
if
the
rest
of
the
module
has
- logging'
s
atexit
hook
now
runs
even
if
the
rest
of
the
module
has
already
been
cleaned
up
.
already
been
cleaned
up
.
...
...
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