[Python-checkins] cpython (3.2): Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.
vinay.sajip
python-checkins at python.org
Fri Aug 19 08:15:54 CEST 2011
http://hg.python.org/cpython/rev/98d13885a574
changeset: 71919:98d13885a574
branch: 3.2
parent: 71916:d062d482642c
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Fri Aug 19 07:14:40 2011 +0100
summary:
Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.
files:
Lib/logging/__init__.py | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -61,8 +61,6 @@
#
if hasattr(sys, 'frozen'): #support for py2exe
_srcfile = "logging%s__init__%s" % (os.sep, __file__[-4:])
-elif __file__[-4:].lower() in ['.pyc', '.pyo']:
- _srcfile = __file__[:-4] + '.py'
else:
_srcfile = __file__
_srcfile = os.path.normcase(_srcfile)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list