Merge lp:~mterry/auto-upgrade-testing/str-buffer into lp:~auto-upgrade-testing-dev/auto-upgrade-testing/trunk
Proposed by
Michael Terry
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 32 | ||||
Proposed branch: | lp:~mterry/auto-upgrade-testing/str-buffer | ||||
Merge into: | lp:~auto-upgrade-testing-dev/auto-upgrade-testing/trunk | ||||
Diff against target: |
37 lines (+4/-4) 1 file modified
AutoUpgradeTester/UpgradeTestBackendQemu.py (+4/-4) |
||||
To merge this branch: | bzr merge lp:~mterry/auto-upgrade-testing/str-buffer | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson | Approve | ||
Review via email: mp+113780@code.launchpad.net |
To post a comment you must log in.
On Fri, Jul 06, 2012 at 05:36:26PM -0000, Michael Terry wrote: NamedTemporaryF ile() write(" "" write(bytes( """
> interfaces = tempfile.
> - interfaces.
> + interfaces.
You can use b"""...""" rather than bytes(). But this is really text
data, so I recommend instead simply opening the file in text mode:
interfaces = tempfile. NamedTemporaryF ile(mode= "w+")
... and similarly for the other occurrences. (You can add
encoding="UTF-8" if you need it, but it looks like you shouldn't.)