mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
* 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
This commit is contained in:
parent
781db5d0bb
commit
c65a525cdc
5 changed files with 21 additions and 10 deletions
|
|
@ -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] &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue