We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76d3f14 commit 80f2262Copy full SHA for 80f2262
1 file changed
Lib/logging/__init__.py
@@ -55,8 +55,8 @@
55
# _srcfile is used when walking the stack to check when we've got the first
56
# caller stack frame.
57
#
58
-if hasattr(sys, 'frozen'): #support for py2exe
59
- _srcfile = "logging%s__init__%s" % (os.sep, __file__[-4:])
+if hasattr(sys, 'frozen'):
+ _srcfile = os.path.join('logging', '__init__.py')
60
else:
61
_srcfile = __file__
62
_srcfile = os.path.normcase(_srcfile)
0 commit comments