From f8378c1a6421237c511191b4d8942b1db92f7dee Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 26 Apr 2015 09:10:05 +0200 Subject: fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/native_bus.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(NULL, flags, &ofile) if r == 0: bs = ofile - return bs.encode('utf-8', 'strict') + return bs.decode('utf-8', 'strict') return None -- cgit v1.2.3-70-g09d2