diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-07-05 02:50:29 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-07-05 02:50:29 (GMT) |
commit | 3b30b19e0a7b9adb37a590d257438544ff0b032c (patch) | |
tree | 0e0ca4c9c6e43832a4976ddb6a28092b54085d9a /Modules | |
parent | d0f5f4827db59fb210adb1b50fd3a536ee7f20da (diff) | |
download | cpython-3b30b19e0a7b9adb37a590d257438544ff0b032c.zip cpython-3b30b19e0a7b9adb37a590d257438544ff0b032c.tar.gz cpython-3b30b19e0a7b9adb37a590d257438544ff0b032c.tar.bz2 |
Fix closes issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
Diffstat (limited to 'Modules')
-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 135ef6e..1ce7c8f 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -583,7 +583,7 @@ Py_Main(int argc, char **argv) sts = PyRun_SimpleStringFlags(command, &cf) != 0; free(command); } else if (module) { - sts = RunModule(module, 1); + sts = (RunModule(module, 1) != 0); free(module); } else { |