From: Vinay Sajip Date: Sun, 10 Oct 2010 20:36:04 +0000 (+0000) Subject: Issue #9948: logging: fixed problem of losing filename case information. X-Git-Tag: v3.2a4~661 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c71b2af1ac8fbba22d5491da9f89e7ef184ccbc;p=thirdparty%2FPython%2Fcpython.git Issue #9948: logging: fixed problem of losing filename case information. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 112286ba5214..b9cea3fa72d5 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -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 diff --git a/Misc/NEWS b/Misc/NEWS index 7a8a8f9be813..57cc97f2f2f9 100644 --- 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