diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-15 04:24:43 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-15 04:24:43 (GMT) |
commit | a2b6ad6e2744d3d5819496a91e460b97c93d4d2d (patch) | |
tree | 367858db2b58a71d1e98746ca02bfaa7282bc8c3 /Python | |
parent | 39dce29365d287dc6b353b2a527dc11fe58dcfa6 (diff) | |
download | cpython-a2b6ad6e2744d3d5819496a91e460b97c93d4d2d.zip cpython-a2b6ad6e2744d3d5819496a91e460b97c93d4d2d.tar.gz cpython-a2b6ad6e2744d3d5819496a91e460b97c93d4d2d.tar.bz2 |
Guido pointed out that all names in the sys module have no underscore,
Diffstat (limited to 'Python')
-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 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", |