Merge lp:~brian.curtin/ubuntuone-dev-tools/py3-dbus-str into lp:ubuntuone-dev-tools
| Status: | Merged |
|---|---|
| Approved by: | Brian Curtin on 2012-08-31 |
| Approved revision: | 100 |
| Merged at revision: | 95 |
| Proposed branch: | lp:~brian.curtin/ubuntuone-dev-tools/py3-dbus-str |
| Merge into: | lp:ubuntuone-dev-tools |
| Prerequisite: | lp:~brian.curtin/ubuntuone-dev-tools/py3-bytes-formatting |
| Diff against target: |
47 lines (+12/-5) 2 files modified
ubuntuone/devtools/services/dbus.py (+6/-3) ubuntuone/devtools/testcases/dbus.py (+6/-2) |
| To merge this branch: | bzr merge lp:~brian.curtin/ubuntuone-dev-tools/py3-dbus-str |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| dobey (community) | Approve on 2012-08-31 | ||
| Manuel de la Peña (community) | 2012-08-28 | Approve on 2012-08-30 | |
|
Review via email:
|
|||
Commit Message
- Sort out dbus related bytes/string differences surrounding subprocess pipes, environment variables, and a dbus API expecting a str argument regardless of version.
Description of the Change
subprocess pipes return byte strings, so implicit strings were converted to explicitly be bytes in order to join on them with data from the pipe. Additionally, os.environ expects Unicode, so we decode the byte string that we joined from the pipe.
dbus.bus.
