Commit 2da23cae authored by Vinay Sajip's avatar Vinay Sajip

Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.

parent 729a42f2
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment