Mercurial > hg > clwapp
changeset 7:a0816f433861 default tip
py3
| author | Jeff Hammel <k0scist@gmail.com> | 
|---|---|
| date | Tue, 24 Nov 2020 12:56:21 -0800 | 
| parents | 1c4b7c1f11ad | 
| children | |
| files | clwapp/utils.py | 
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] | 
line wrap: on
 line diff
--- 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')
