diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2015-05-26 21:57:16 +1000 |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2015-05-26 21:57:16 +1000 |
commit | 06f155f4884dff99bfd72a38d8930449a24cbf28 (patch) | |
tree | 97306a23aaae938a6ca63460b6487a36e986d69b /Python/importdl.c | |
parent | c074e9d765505df971fc89e21d512b40f85e1d6b (diff) | |
parent | 55871f04bf0ac1cf0c7b1efd82780b4bf979d4f0 (diff) | |
download | cpython-git-06f155f4884dff99bfd72a38d8930449a24cbf28.tar.gz |
Merge fix for issue #24285 from 3.5
Diffstat (limited to 'Python/importdl.c')
-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 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; |