zturner added a comment. Another way of dealing with this is to pass `universal_newlines=True` to `subprocess.Popen`. Despite the silly name, all this really means is "redirected pipes are text mode". As long as you expect the command being run to always return text rather than binary, it's safe to use. The name `universal_newlines` is actually so poor that in Python 3.7 they made a new alias that is identical, but just called `text`, so in 3.7 and higher you can just say `text=True`. We can't do that here because we probably want to support 3.5 and higher, but the point is just that `universal_newlines` isn't really anything fancy, it just means text.
If you do that, then `process.stdout.read()` will just return a string, and you don't need to manually decode it. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D56517/new/ https://reviews.llvm.org/D56517 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits