[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile
Madison May
report at bugs.python.org
Fri Jul 5 23:52:46 CEST 2013
Madison May added the comment:
Here's a preliminary attempt at a patch and a small set of test cases for _get_sourcefile. I fixed one more spelling error in _get_sourcefile (bytcode -> bytecode) and tweaked a bit of logic.
Instead of:
extension.lower()[-3:-1] != '.py'
I think we needed
extension.lower()[-3:-1] != 'py'
You must have been having a rough day, Brett =). Anyhow, when you get a chance, take a look at this first attempt and let me know what you'd do differently.
Thanks,
Madison
----------
Added file: http://bugs.python.org/file30786/Issue18351_Python3-3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18351>
_______________________________________
More information about the Python-bugs-list
mailing list