summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-17 09:12:09 (GMT)
committerGitHub <noreply@github.com>2019-05-17 09:12:09 (GMT)
commitfed02e15b39b6f1521ea21654be5fc0757a8720a (patch)
tree976c7abd1f4a66a97aba89de3688405b9a5161b3 /Modules
parent245f528a92d7748dbd7acf9cba860153c143bbfe (diff)
downloadcpython-fed02e15b39b6f1521ea21654be5fc0757a8720a.zip
cpython-fed02e15b39b6f1521ea21654be5fc0757a8720a.tar.gz
cpython-fed02e15b39b6f1521ea21654be5fc0757a8720a.tar.bz2
bpo-36763: Remove _PyCoreConfig.program (GH-13373)
Use _PyCoreConfig.program_name instead.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/main.c b/Modules/main.c
index b47ac70..bb103c2 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -283,7 +283,7 @@ pymain_run_file(_PyCoreConfig *config, PyCompilerFlags *cf)
else
cfilename = "<unprintable file name>";
fprintf(stderr, "%ls: can't open file '%s': [Errno %d] %s\n",
- config->program, cfilename, err, strerror(err));
+ config->program_name, cfilename, err, strerror(err));
PyMem_RawFree(cfilename_buffer);
return 2;
}
@@ -303,7 +303,7 @@ pymain_run_file(_PyCoreConfig *config, PyCompilerFlags *cf)
if (_Py_fstat_noraise(fileno(fp), &sb) == 0 && S_ISDIR(sb.st_mode)) {
fprintf(stderr,
"%ls: '%ls' is a directory, cannot continue\n",
- config->program, filename);
+ config->program_name, filename);
fclose(fp);
return 1;
}