Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c71b2a

Browse files
committed
Issue #9948: logging: fixed problem of losing filename case information.
1 parent 7d03c7d commit 1c71b2a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/logging/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ def findCaller(self):
11741174
if filename == _srcfile:
11751175
f = f.f_back
11761176
continue
1177-
rv = (filename, f.f_lineno, co.co_name)
1177+
rv = (co.co_filename, f.f_lineno, co.co_name)
11781178
break
11791179
return rv
11801180

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ Core and Builtins
9292
Library
9393
-------
9494

95+
- Issue #9948: Fixed problem of losing filename case information.
96+
9597
- Issue #9437: Fix building C extensions with non-default LDFLAGS.
9698

9799
- Issue #4661: email can now parse bytes input and generate either converted

0 commit comments

Comments
 (0)