From 2f0b76f17895e08b1a91766bef4032d733c42e04 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Thu, 16 Nov 2017 00:11:30 +0100 Subject: [PATCH] dmg.py: Compatibility with Python 3.2 and below --- scripts/dmg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dmg.py b/scripts/dmg.py index f8c60cebb..aed55e911 100644 --- a/scripts/dmg.py +++ b/scripts/dmg.py @@ -24,7 +24,7 @@ class Dmg: if self.config.verbose >= 1: print("EXECUTING {}".format(" ".join(shlex.quote(x) for x in process_args))) if not (self.config.verbose >= 2 and "stdout" not in kwargs): - kwargs["stdout"] = subprocess.DEVNULL + kwargs["stdout"] = open(os.devnull, 'wb') subprocess.check_call(process_args, *args, **kwargs) class Dmgtools(Dmg):