[Python-checkins] CVS: python/dist/src/Python sysmodule.c,2.73,2.74

Fred L. Drake python-dev@python.org
Mon, 14 Aug 2000 21:24:46 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv13031/Python

Modified Files:
	sysmodule.c 
Log Message:

Guido pointed out that all names in the sys module have no underscore,


Index: sysmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/sysmodule.c,v
retrieving revision 2.73
retrieving revision 2.74
diff -C2 -r2.73 -r2.74
*** sysmodule.c	2000/08/14 20:59:57	2.73
--- sysmodule.c	2000/08/15 04:24:43	2.74
***************
*** 462,473 ****
  		   Should be safe! */
  		unsigned long number = 1;
  
  		s = (char *) &number;
  		if (s[0] == 0)
! 			PyDict_SetItemString(sysdict, "byte_order",
! 					     PyString_FromString("big"));
  		else
! 			PyDict_SetItemString(sysdict, "byte_order",
! 					     PyString_FromString("little"));
  	}
  #ifdef MS_COREDLL
--- 462,474 ----
  		   Should be safe! */
  		unsigned long number = 1;
+ 		char *value;
  
  		s = (char *) &number;
  		if (s[0] == 0)
! 			value = "big";
  		else
! 			value = "little";
! 		PyDict_SetItemString(sysdict, "byteorder",
! 				     PyString_FromString(value));
  	}
  #ifdef MS_COREDLL