aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2018-03-11 10:18:13 +0200
committerFilipp Lepalaan <filipp@mac.com>2018-03-11 10:18:13 +0200
commit110bf0fa6059a5d67375ec1dd65510a82e36037f (patch)
tree465180e1a56d0b1729f158560db2cc8a4d3b07fa
parentdc181c65bee13fcf43ceac5bd41b3cdd70e9033a (diff)
downloadmachammer-110bf0fa6059a5d67375ec1dd65510a82e36037f.tar.gz
machammer-110bf0fa6059a5d67375ec1dd65510a82e36037f.tar.bz2
machammer-110bf0fa6059a5d67375ec1dd65510a82e36037f.zip
Fix Python 2 compat
-rw-r--r--machammer/functions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/machammer/functions.py b/machammer/functions.py
index 326918d..2bcde3f 100644
--- a/machammer/functions.py
+++ b/machammer/functions.py
@@ -153,9 +153,9 @@ def mount_image(path, mp=None, *args):
raise Exception('Invalid path: %s' % path)
mp = mp or tempfile.mkdtemp()
- p = subprocess.Popen(['/usr/bin/hdiutil', 'mount',
+ p = subprocess.Popen(('/usr/bin/hdiutil', 'mount',
'-mountpoint', mp,
- '-nobrowse', path, *args],
+ '-nobrowse', path) + args,
stdout=subprocess.PIPE,
stdin=subprocess.PIPE,
stderr=subprocess.PIPE)