aboutsummaryrefslogtreecommitdiffstats
path: root/src/native_bus.pyx
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-26 09:10:05 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-26 09:10:07 +0200
commitf8378c1a6421237c511191b4d8942b1db92f7dee (patch)
tree4f59cfedd593da4e24354659d81b9ff28e9b635e /src/native_bus.pyx
parentupdate doc (diff)
downloadpython-bus-f8378c1a6421237c511191b4d8942b1db92f7dee.tar.gz
python-bus-f8378c1a6421237c511191b4d8942b1db92f7dee.tar.bz2
python-bus-f8378c1a6421237c511191b4d8942b1db92f7dee.tar.xz
fix bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/native_bus.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/native_bus.pyx b/src/native_bus.pyx
index b6f3127..5cc425c 100644
--- a/src/native_bus.pyx
+++ b/src/native_bus.pyx
@@ -139,7 +139,7 @@ def bus_create_wrapped(file : str, flags : int) -> str:
r = bus_create(<char *>NULL, flags, &ofile)
if r == 0:
bs = ofile
- return bs.encode('utf-8', 'strict')
+ return bs.decode('utf-8', 'strict')
return None