diff -r 7255af1a1c50 Python/importdl.c --- a/Python/importdl.c Mon May 25 12:32:20 2015 +0300 +++ b/Python/importdl.c Mon May 25 14:05:12 2015 +0200 @@ -45,7 +45,7 @@ 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;