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)