Issue 17220: Little enhancements of _bootstrap.py (original) (raw)

I dug into http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/1517/steps/compile/logs/stdio and found this traceback:

EXEC : Fatal Python error : Py_Initialize: unable to load the file system codec [C:\buildbot.python.org\3.x.kloth-win64\build\PCbuild\ssl.vcxproj] Traceback (most recent call last): File "", line 1570, in _find_and_load File "", line 1537, in _find_and_load_unlocked File "", line 572, in _check_name_wrapper File "", line 1035, in load_module File "", line 1016, in load_module File "", line 536, in module_for_loader_wrapper File "", line 859, in is_package File "", line 77, in _path_split ValueError: too many values to unpack (expected 2)

Looks like Serhiy forgot to cap the rsplit() call to a single split (which rpartition does implicitly). I'll fix it shortly.