summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-07-23 16:30:27 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-07-23 16:30:27 (GMT)
commit7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5 (patch)
tree6b57c0d5016d8f919397303aaaa11cf610e1dd9d /Modules/timemodule.c
parentf973c6d5949bfed3e74b8b94c427c43df1e4b95c (diff)
downloadcpython-7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5.zip
cpython-7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5.tar.gz
cpython-7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5.tar.bz2
Add -E command line switch (ignore environment variables like PYTHONHOME
and PYTHONPATH).
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 0a54a93..50e4053 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -594,7 +594,7 @@ inittime(void)
m = Py_InitModule3("time", time_methods, module_doc);
d = PyModule_GetDict(m);
/* Accept 2-digit dates unless PYTHONY2K is set and non-empty */
- p = getenv("PYTHONY2K");
+ p = Py_GETENV("PYTHONY2K");
ins(d, "accept2dyear", PyInt_FromLong((long) (!p || !*p)));
/* Squirrel away the module's dictionary for the y2k check */
Py_INCREF(d);