# HG changeset patch # User Jeff Hammel # Date 1606251381 28800 # Node ID a0816f433861d64b4c44ce0a83cf599b587cbb96 # Parent 1c4b7c1f11add24d81c62c9ec5d70593c6a4f3a0 py3 diff -r 1c4b7c1f11ad -r a0816f433861 clwapp/utils.py --- a/clwapp/utils.py Tue Nov 24 10:50:38 2020 -0800 +++ b/clwapp/utils.py Tue Nov 24 12:56:21 2020 -0800 @@ -4,5 +4,6 @@ process = subprocess.Popen('for arg in %s; do echo $arg; done' % args, shell=True, stdout=subprocess.PIPE) output = process.communicate()[0] - output = output[:-1] # last line will be blank + output = output.decode("utf-8") + output = output.strip() # last line will be blank return output.split('\n')