summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2011-08-19 06:15:45 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2011-08-19 06:15:45 (GMT)
commit444be161366733aebf6a1ec04c76e62e227f9cba (patch)
treeee393e91122e3e7abc27a016cea09993db8fa374 /Lib
parent17e92cf9a6a318feba033859ec518d917a3a11ef (diff)
parent2da23caec0c4922bc509754e3e4bc90b9f26add3 (diff)
downloadcpython-444be161366733aebf6a1ec04c76e62e227f9cba.zip
cpython-444be161366733aebf6a1ec04c76e62e227f9cba.tar.gz
cpython-444be161366733aebf6a1ec04c76e62e227f9cba.tar.bz2
Issue #12780: Merged fix from 3.2.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 7efbc45..8406df3 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -60,8 +60,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)