]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 19 Aug 2011 06:14:40 +0000 (07:14 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 19 Aug 2011 06:14:40 +0000 (07:14 +0100)
Lib/logging/__init__.py

index 0af8bb7dca76ecd3c345beec5f408923cb7ff744..de5392beca84a23c0ac0fb12645164c3d7db5b5d 100644 (file)
@@ -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)