summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-07-05 02:33:45 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-07-05 02:33:45 (GMT)
commitf28fbabc7fa7cf1c4880ce39b507f600def35439 (patch)
tree80fb013697540a163409e6c972f35a38d309aaa4 /Modules
parent53089c6e91f6152bc43776587e82a0bbeb574fe0 (diff)
parentf01a337950bdcd6905d12b2335ba4d8773f6b8e5 (diff)
downloadcpython-f28fbabc7fa7cf1c4880ce39b507f600def35439.zip
cpython-f28fbabc7fa7cf1c4880ce39b507f600def35439.tar.gz
cpython-f28fbabc7fa7cf1c4880ce39b507f600def35439.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 e262552..64bac6e 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -660,7 +660,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 {