summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2015-05-26 21:57:16 +1000
committerNick Coghlan <ncoghlan@gmail.com>2015-05-26 21:57:16 +1000
commit06f155f4884dff99bfd72a38d8930449a24cbf28 (patch)
tree97306a23aaae938a6ca63460b6487a36e986d69b /Python
parentc074e9d765505df971fc89e21d512b40f85e1d6b (diff)
parent55871f04bf0ac1cf0c7b1efd82780b4bf979d4f0 (diff)
downloadcpython-git-06f155f4884dff99bfd72a38d8930449a24cbf28.tar.gz
Merge fix for issue #24285 from 3.5
Diffstat (limited to 'Python')
-rw-r--r--Python/importdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index bb90391c0b..579d2c5fad 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;