From: Victor Stinner Date: Thu, 2 Apr 2020 00:00:06 +0000 (+0200) Subject: bpo-40094: mailcap.test() uses waitstatus_to_exitcode() (GH-19287) X-Git-Tag: v3.9.0a6~216 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d57cf557366584539f400db523b555296487e8f5;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/mailcap.py b/Lib/mailcap.py index bd0fc0981c8c..ae416a8e9fb2 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)