aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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