Skip to content

Commit 90ff56a

Browse files
committed
Mention PYTHONHOME implicitly and styling
1 parent 8392891 commit 90ff56a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Python/codecs.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,9 @@ _PyCodec_InitRegistry(PyInterpreterState *interp)
15261526
// search functions, so this is done after everything else is initialized.
15271527
PyObject *mod = PyImport_ImportModule("encodings");
15281528
if (mod == NULL) {
1529-
return PyStatus_Error("Failed to import encodings module. Your environment probably has misconfigured variables! Please refer to `--help-env`");
1529+
return PyStatus_Error("Failed to import encodings module. "
1530+
"Your environment probably has misconfigured variables! "
1531+
"Please check PYTHONHOME otherwise refer to `--help-env`");
15301532
}
15311533
Py_DECREF(mod);
15321534

0 commit comments

Comments
 (0)