diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-07-05 02:28:16 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-07-05 02:28:16 (GMT) |
commit | f01a337950bdcd6905d12b2335ba4d8773f6b8e5 (patch) | |
tree | 69ff081aab477227ca4f239023b0dda4ef34cb3a /Modules/main.c | |
parent | 035997f1a3f2edd53a5f72cf381e5e9a12743a30 (diff) | |
download | cpython-f01a337950bdcd6905d12b2335ba4d8773f6b8e5.zip cpython-f01a337950bdcd6905d12b2335ba4d8773f6b8e5.tar.gz cpython-f01a337950bdcd6905d12b2335ba4d8773f6b8e5.tar.bz2 |
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index 1282f46..5b4a7e2 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -673,7 +673,7 @@ Py_Main(int argc, wchar_t **argv) sts = run_command(command, &cf); free(command); } else if (module) { - sts = RunModule(module, 1); + sts = (RunModule(module, 1) != 0); } else { |