]> granicus.if.org Git - python/commitdiff
Issue #9948: logging: fixed problem of losing filename case information.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 10 Oct 2010 20:36:04 +0000 (20:36 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 10 Oct 2010 20:36:04 +0000 (20:36 +0000)
Lib/logging/__init__.py
Misc/NEWS

index 6baf9b4f8f0ff58c9a371939e5fe9d10163e1a25..2f081a0a85ec309e18ae943f7dc88512680d5c7b 100644 (file)
@@ -1211,7 +1211,7 @@ class Logger(Filterer):
             if filename == _srcfile:
                 f = f.f_back
                 continue
-            rv = (filename, f.f_lineno, co.co_name)
+            rv = (co.co_filename, f.f_lineno, co.co_name)
             break
         return rv
 
index b8bdd9c61c48b4e47971aa14f88e76b2a73e9e29..613afd98b8755681d3cfdb70d9091c2ef6b291e1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -48,6 +48,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #9948: Fixed problem of losing filename case information.
+
 - Issue #9437: Fix building C extensions with non-default LDFLAGS.
 
 - Issue #9759: GzipFile now raises ValueError when an operation is attempted