diff Modules/socketmodule.c @ 1760:48e6b319f3e4 legacy-trunk

* 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
author Guido van Rossum <guido@python.org>
date Fri, 05 Aug 1994 13:44:50 +0000
parents 1940892d2fe3
children a584b4bbbc59
line wrap: on
line diff
--- a/Modules/socketmodule.c	Fri Aug 05 13:37:36 1994 +0000
+++ b/Modules/socketmodule.c	Fri Aug 05 13:44:50 1994 +0000
@@ -380,6 +380,7 @@
 }
 
 
+#if 0
 /* s.allowbroadcast() method */
 /* XXX obsolete -- will disappear in next release */
 
@@ -399,6 +400,7 @@
 	INCREF(None);
 	return None;
 }
+#endif
 
 
 /* s.setsockopt() method.
@@ -796,7 +798,9 @@
 
 static struct methodlist sock_methods[] = {
 	{"accept",		(method)sock_accept},
+#if 0
 	{"allowbroadcast",	(method)sock_allowbroadcast},
+#endif
 	{"setsockopt",		(method)sock_setsockopt},
 	{"getsockopt",		(method)sock_getsockopt},
 	{"bind",		(method)sock_bind},