diff -r e3dbe8b7279a Objects/unicodeobject.c --- a/Objects/unicodeobject.c Sat Sep 03 19:30:22 2016 +0100 +++ b/Objects/unicodeobject.c Thu Sep 08 22:42:37 2016 +0200 @@ -10446,7 +10446,7 @@ if (maxcount < 0) maxcount = PY_SSIZE_T_MAX; - else if (maxcount == 0 || slen == 0) + if (maxcount == 0 || slen == 0) goto nothing; if (str1 == str2)