diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-02-11 14:00:20 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-02-11 14:00:20 -0500 |
commit | 35dd98c07bce490e85e03bef872cbbf1185e0be9 (patch) | |
tree | 9b71de77b27ca916fa1d869fa95c0a5ab9f5e51c /cloudinit/util.py | |
parent | cd632b2f153a61faa48531cb41d0288650e72c71 (diff) | |
parent | 587387cfbff7a89573128dc958df903d1becbde1 (diff) | |
download | vyos-cloud-init-35dd98c07bce490e85e03bef872cbbf1185e0be9.tar.gz vyos-cloud-init-35dd98c07bce490e85e03bef872cbbf1185e0be9.zip |
some python3 fixes
This fixes the last set of WARN messages in my testing.
* open /dev/console in text mode
* move final message to be jinja template by default to avoid
a warning about lack of cheetah.
* write and read pickle'd contents in binary
* some logging tests
Also:
* add tool tox-venv for simple things like:
tox-venv py34 /bin/bash
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index b845adfd..67ea5553 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -404,7 +404,7 @@ def multi_log(text, console=True, stderr=True, if console: conpath = "/dev/console" if os.path.exists(conpath): - with open(conpath, 'wb') as wfh: + with open(conpath, 'w') as wfh: wfh.write(text) wfh.flush() else: |