diff options
author | Gregory P. Smith <greg@krypto.org> | 2015-10-22 20:09:50 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2015-10-22 20:09:50 (GMT) |
commit | 7427a79e12a418a76d4660799b1c75785b5ea46d (patch) | |
tree | 033760d6f09ebaf73ad7c3d1a7238f72415edc5c /Lib/nturl2path.py | |
parent | 1256b3c677172967f158693b0af8de0125ed687d (diff) | |
download | cpython-7427a79e12a418a76d4660799b1c75785b5ea46d.zip cpython-7427a79e12a418a76d4660799b1c75785b5ea46d.tar.gz cpython-7427a79e12a418a76d4660799b1c75785b5ea46d.tar.bz2 |
Issue #21709: Fix the logging module to not depend upon __file__ being set
properly to get the filename of its caller from the stack. This allows it
to work if run in a frozen or embedded environment where the module's
.__file__ attribute does not match its code object's .co_filename.
This same much simpler always correct approach has already been deployed and
used widely in Python 3.4 per the issue referenced above.
Diffstat (limited to 'Lib/nturl2path.py')
0 files changed, 0 insertions, 0 deletions