commit | e033e1b80f70c6e31364218b69f9a4fe5c8135a1 | [log] [tgz] |
---|---|---|
author | Ian Wienand <iwienand@redhat.com> | Fri Jun 16 12:56:53 2017 +1000 |
committer | Ian Wienand <iwienand@redhat.com> | Fri Feb 23 08:26:34 2018 +1100 |
tree | 464b808aa26843c7885b3701fca31bae8f673978 | |
parent | a9e946471ef029755d7dd22f70a20273578c9813 [diff] |
py3 changes for outfilter.py I started running this with dib where we have pure python3 environments and it failed. You can't have unbuffered text i/o in python3 for ... reasons? [1] Changing the file to binary mode works around this. Python3 opens sys.stdin in text mode, so we need to manually convert the unicode strings to bytes before we write them to the binary file. [1] http://bugs.python.org/issue17404 Change-Id: Iebb26f0d3c2347d262cbc10dfd0912840cd05878