diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2015-05-26 11:48:17 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2015-05-26 11:48:17 (GMT) |
commit | 55871f04bf0ac1cf0c7b1efd82780b4bf979d4f0 (patch) | |
tree | e9e3646bf9edca065d9b1346a2730e68c8f4f181 /Python | |
parent | 6f68314b2ac64ac6a47c265e2d1265398cfc8f9c (diff) | |
download | cpython-55871f04bf0ac1cf0c7b1efd82780b4bf979d4f0.zip cpython-55871f04bf0ac1cf0c7b1efd82780b4bf979d4f0.tar.gz cpython-55871f04bf0ac1cf0c7b1efd82780b4bf979d4f0.tar.bz2 |
Issue #24285: fix importing extensions from packages
Diffstat (limited to 'Python')
-rw-r--r-- | Python/importdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/importdl.c b/Python/importdl.c index bb90391..579d2c5 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -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; |