patch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.
diff --git a/Python/import.c b/Python/import.c
index 8094f7d..d9550f5 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1630,7 +1630,7 @@
FILEFINDBUF3 ffbuf;
APIRET rc;
- if (getenv("PYTHONCASEOK") != NULL)
+ if (Py_GETENV("PYTHONCASEOK") != NULL)
return 1;
rc = DosFindFirst(buf,
diff --git a/Python/thread.c b/Python/thread.c
index 3a2c7af..9a4dc25 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -79,7 +79,7 @@
PyThread_init_thread(void)
{
#ifdef Py_DEBUG
- char *p = getenv("THREADDEBUG");
+ char *p = Py_GETENV("PYTHONTHREADDEBUG");
if (p) {
if (*p)