From a2b6ad6e2744d3d5819496a91e460b97c93d4d2d Mon Sep 17 00:00:00 2001
From: Fred Drake <fdrake@acm.org>
Date: Tue, 15 Aug 2000 04:24:43 +0000
Subject: Guido pointed out that all names in the sys module have no
 underscore,

---
 Doc/lib/libsys.tex | 2 +-
 Python/sysmodule.c | 9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex
index 5cc833d..bbea623 100644
--- a/Doc/lib/libsys.tex
+++ b/Doc/lib/libsys.tex
@@ -20,7 +20,7 @@ It is always available.
   \code{argv} has zero length.
 \end{datadesc}
 
-\begin{datadesc}{byte_order}
+\begin{datadesc}{byteorder}
   An indicator of the native byte order.  This will have the value
   \code{'big'} on big-endian (most-signigicant byte first) platforms,
   and \code{'little'} on little-endian (least-significant byte first)
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 99a6ff7..3026b66 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -461,14 +461,15 @@ _PySys_Init(void)
 		/* Assumes that longs are at least 2 bytes long.
 		   Should be safe! */
 		unsigned long number = 1;
+		char *value;
 
 		s = (char *) &number;
 		if (s[0] == 0)
-			PyDict_SetItemString(sysdict, "byte_order",
-					     PyString_FromString("big"));
+			value = "big";
 		else
-			PyDict_SetItemString(sysdict, "byte_order",
-					     PyString_FromString("little"));
+			value = "little";
+		PyDict_SetItemString(sysdict, "byteorder",
+				     PyString_FromString(value));
 	}
 #ifdef MS_COREDLL
 	PyDict_SetItemString(sysdict, "dllhandle",
-- 
cgit v0.12

