Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d57cf55

Browse files
authored
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.
1 parent 168660b commit d57cf55

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/mailcap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ def test():
251251
else:
252252
print("Executing:", command)
253253
sts = os.system(command)
254+
sts = os.waitstatus_to_exitcode(sts)
254255
if sts:
255256
print("Exit status:", sts)
256257

0 commit comments

Comments
 (0)