diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-15 04:24:43 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-15 04:24:43 +0000 |
commit | fd9d75494f14cf45d80581845c75c558e3d2062e (patch) | |
tree | d1d6c02548fc0e8e8d8974b11005adb73be4fa6f /Python/sysmodule.c | |
parent | f224e936f483ce6e762bba7a208c02cb34257765 (diff) | |
download | cpython-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.c | 9 |
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", |