aboutsummaryrefslogtreecommitdiffstats
path: root/machammer/functions.py
diff options
context:
space:
mode:
Diffstat (limited to 'machammer/functions.py')
-rw-r--r--machammer/functions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/machammer/functions.py b/machammer/functions.py
index 6600118..b45a520 100644
--- a/machammer/functions.py
+++ b/machammer/functions.py
@@ -29,6 +29,7 @@ def call(*args):
> call('ls', '/Users')
"""
+ args = [str(x) for x in args]
subprocess.call(args)
@@ -48,6 +49,7 @@ def popen(cmd, input=None):
def check_output(*args):
"""Shortcut for subprocess.check_output."""
+ args = [str(x) for x in args]
result = subprocess.check_output(args).strip()
if len(result) < 1: