Message251937
In importlib a verbose message can be formatted twice, the first time before passing it to _verbose_message(), and the second time in _verbose_message(), Example:
$ python -v
...
>>> open('{0}.pyc', 'wb').close()
>>> __import__('{0}')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 658, in exec_module
File "<frozen importlib._bootstrap_external>", line 869, in get_code
File "<frozen importlib._bootstrap_external>", line 440, in _validate_bytecode_header
File "<frozen importlib._bootstrap_external>", line 368, in _verbose_message
IndexError: tuple index out of range
Proposed patch fixes the issue. |
|
Date |
User |
Action |
Args |
2015-09-30 13:32:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, ncoghlan, eric.snow |
2015-09-30 13:32:17 | serhiy.storchaka | set | messageid: <1443619937.76.0.139042721481.issue25280@psf.upfronthosting.co.za> |
2015-09-30 13:32:17 | serhiy.storchaka | link | issue25280 messages |
2015-09-30 13:32:17 | serhiy.storchaka | create | |
|