From 2da23caec0c4922bc509754e3e4bc90b9f26add3 Mon Sep 17 00:00:00 2001
From: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Date: Fri, 19 Aug 2011 07:14:40 +0100
Subject: [PATCH] Issue #12780: Removed checks in logging for .pyc/.pyo in
 __file__.

---
 Lib/logging/__init__.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 0af8bb7dca7..de5392beca8 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)
-- 
2.30.9