From: Vinay Sajip Date: Fri, 19 Aug 2011 06:14:40 +0000 (+0100) Subject: Issue #12780: Removed checks in logging for .pyc/.pyo in __file__. X-Git-Tag: v3.2.3rc1~642 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2da23caec0c4922bc509754e3e4bc90b9f26add3;p=thirdparty%2FPython%2Fcpython.git Issue #12780: Removed checks in logging for .pyc/.pyo in __file__. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 0af8bb7dca76..de5392beca84 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -61,8 +61,6 @@ __date__ = "07 February 2010" # 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)