File: 07-giobackend

package info (click to toggle)
duplicity 3.0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,260 kB
  • sloc: python: 25,089; sh: 934; ansic: 392; makefile: 83
file content (11 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
--- a/duplicity/backends/giobackend.py
+++ b/duplicity/backends/giobackend.py
@@ -34,7 +34,7 @@ def ensure_dbus():
     # environment points to it.
     if "DBUS_SESSION_BUS_ADDRESS" not in os.environ:
         p = subprocess.Popen(["dbus-launch"], stdout=subprocess.PIPE, universal_newlines=True)
-        output = p.communicate()[0]
+        output = p.communicate()[0].decode("utf8", errors="replace")
         lines = output.split("\n")
         for line in lines:
             parts = line.split("=", 1)