]> git.ipfire.org Git - thirdparty/Python/cpython.git/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 112286ba5214c8a5aca14eeeb77895516c140e58..b9cea3fa72d5c982ad1b9f779c78e4ae5a4de73e 100644 (file)
@@ -1174,7 +1174,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 7a8a8f9be8131d62b6638bdfb2bb2d6b966af4a5..57cc97f2f2f9a9f761482397401e2897172ec2e7 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,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 #4661: email can now parse bytes input and generate either converted