summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-07-05 02:28:16 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-07-05 02:28:16 (GMT)
commitf01a337950bdcd6905d12b2335ba4d8773f6b8e5 (patch)
tree69ff081aab477227ca4f239023b0dda4ef34cb3a /Modules
parent035997f1a3f2edd53a5f72cf381e5e9a12743a30 (diff)
downloadcpython-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')
-rw-r--r--Modules/main.c2
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 {