commit | 2da23caec0c4922bc509754e3e4bc90b9f26add3 | [log] [tgz] |
---|---|---|
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Fri Aug 19 07:14:40 2011 +0100 |
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Fri Aug 19 07:14:40 2011 +0100 |
tree | a90e4c156e15855017ba0e6c3e0aa68f55e82eda | |
parent | 729a42f263e434ff982381305a285b9761a4af0b [diff] |
Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 0af8bb7..de5392b 100644 --- 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)