diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-08-19 06:14:40 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-08-19 06:14:40 (GMT) |
commit | 2da23caec0c4922bc509754e3e4bc90b9f26add3 (patch) | |
tree | a90e4c156e15855017ba0e6c3e0aa68f55e82eda /Lib | |
parent | 729a42f263e434ff982381305a285b9761a4af0b (diff) | |
download | cpython-2da23caec0c4922bc509754e3e4bc90b9f26add3.zip cpython-2da23caec0c4922bc509754e3e4bc90b9f26add3.tar.gz cpython-2da23caec0c4922bc509754e3e4bc90b9f26add3.tar.bz2 |
Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/logging/__init__.py | 2 |
1 files changed, 0 insertions, 2 deletions
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 @@ __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) |