summaryrefslogtreecommitdiffstats
path: root/Modules/stropmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-05 13:44:50 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-05 13:44:50 (GMT)
commitc65a525cdc9ce2e0af56e1a75deb877e935cee2f (patch)
tree3d9826ef689cd442f8906c2fed6b8eed008b4acc /Modules/stropmodule.c
parent781db5d0bb24889dbcd06203b38d4eb886d45f87 (diff)
downloadcpython-c65a525cdc9ce2e0af56e1a75deb877e935cee2f.zip
cpython-c65a525cdc9ce2e0af56e1a75deb877e935cee2f.tar.gz
cpython-c65a525cdc9ce2e0af56e1a75deb877e935cee2f.tar.bz2
* Modules/{Setup.in,Makefile.pre.in}: renamed some modules to
shorter names (dropped the "module" from the name): sunaudiodev, imgformat, audioop, imageop, imgfile * Modules/stropmodule.c (strop_rindex): make rindex('abc', '') do the right thing (i.e. return 3 instead of 0) * Modules/socketmodule.c: disabled allowbroadcast() socket method
Diffstat (limited to 'Modules/stropmodule.c')
-rw-r--r--Modules/stropmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c
index c980272..0fd09b0 100644
--- a/Modules/stropmodule.c
+++ b/Modules/stropmodule.c
@@ -256,7 +256,7 @@ strop_rindex(self, args)
}
if (n == 0)
- return newintobject((long)i);
+ return newintobject((long)len);
for (j = len-n; j >= i; --j)
if (s[j] == sub[0] &&