Issue #24285: fix importing extensions from packages

This commit is contained in:
Nick Coghlan 2015-05-26 21:48:17 +10:00
parent 6f68314b2a
commit 55871f04bf
3 changed files with 13 additions and 2 deletions

View file

@ -45,7 +45,7 @@ get_encoded_name(PyObject *name, const char **hook_prefix) {
if (lastdot < -1) {
return NULL;
} else if (lastdot >= 0) {
tmp = PyUnicode_Substring(name, lastdot, name_len);
tmp = PyUnicode_Substring(name, lastdot + 1, name_len);
if (tmp == NULL)
return NULL;
name = tmp;