diff options
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/main.c b/Modules/main.c index ce05431..9f0b01c 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -507,13 +507,9 @@ Py_Main(int argc, char **argv) if (sts==-1 && filename!=NULL) { if ((fp = fopen(filename, "r")) == NULL) { -#ifdef HAVE_STRERROR fprintf(stderr, "%s: can't open file '%s': [Errno %d] %s\n", argv[0], filename, errno, strerror(errno)); -#else - fprintf(stderr, "%s: can't open file '%s': Errno %d\n", - argv[0], filename, errno); -#endif + return 2; } else if (skipfirstline) { |