galaxyproject / galaxy

Data intensive science for everyone.
https://galaxyproject.org
Other
1.38k stars 992 forks source link

Unify Popen calls #9251

Open bernt-matthias opened 4 years ago

bernt-matthias commented 4 years ago

Discussion started in https://github.com/galaxyproject/galaxy/pull/9246.

There are many

p = subprocess.Popen(...)
stdout, stderr = p.communicate(...)

calls which should be unified with an already existing function from https://github.com/galaxyproject/galaxy/blob/9e76dcd9d381545ef627b63ec406dccf34bc9ae9/lib/galaxy/tool_util/deps/commands.py#L97

_wait needs to be unicodified since otherwise bytes are returned in py3 instead of str.

bernt-matthias commented 4 years ago