summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-15 04:24:43 +0000
committerFred Drake <fdrake@acm.org>2000-08-15 04:24:43 +0000
commitfd9d75494f14cf45d80581845c75c558e3d2062e (patch)
treed1d6c02548fc0e8e8d8974b11005adb73be4fa6f /Python/sysmodule.c
parentf224e936f483ce6e762bba7a208c02cb34257765 (diff)
downloadcpython-fd9d75494f14cf45d80581845c75c558e3d2062e.tar.gz
Guido pointed out that all names in the sys module have no underscore,
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 99a6ff76e4..3026b66d1f 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",