From d57cf557366584539f400db523b555296487e8f5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 2 Apr 2020 02:00:06 +0200 Subject: [PATCH] bpo-40094: mailcap.test() uses waitstatus_to_exitcode() (GH-19287) mailcap.test() now uses os.waitstatus_to_exitcode() to convert os.system() exit status into an exit code. --- Lib/mailcap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/mailcap.py b/Lib/mailcap.py index bd0fc0981c8..ae416a8e9fb 100644 --- a/Lib/mailcap.py +++ b/Lib/mailcap.py @@ -251,6 +251,7 @@ def test(): else: print("Executing:", command) sts = os.system(command) + sts = os.waitstatus_to_exitcode(sts) if sts: print("Exit status:", sts)