[Python-checkins] Fix typo in error message when decoding PYTHONPATH. (GH-6981) (GH-6993)
Ned Deily
webhook-mailer at python.org
Sat May 19 19:14:45 EDT 2018
https://github.com/python/cpython/commit/6414da93ed870116f97b846cb252388d9cc0f10b
commit: 6414da93ed870116f97b846cb252388d9cc0f10b
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Ned Deily <nad at python.org>
date: 2018-05-19T19:14:42-04:00
summary:
Fix typo in error message when decoding PYTHONPATH. (GH-6981) (GH-6993)
(cherry picked from commit 4857543a090c6c1ad20e935b2d7e88bbf2cbcc01)
Co-authored-by: Carl Meyer <carl at oddbird.net>
files:
M Modules/main.c
diff --git a/Modules/main.c b/Modules/main.c
index f6b51043007b..9cbb3f1ce003 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -1831,7 +1831,7 @@ config_read_env_vars(_PyCoreConfig *config)
wchar_t *path;
int res = config_get_env_var_dup(&path, L"PYTHONPATH", "PYTHONPATH");
if (res < 0) {
- return DECODE_LOCALE_ERR("PYTHONHOME", res);
+ return DECODE_LOCALE_ERR("PYTHONPATH", res);
}
config->module_search_path_env = path;
More information about the Python-checkins
mailing list