diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-04-26 09:10:05 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-04-26 09:10:07 +0200 |
commit | f8378c1a6421237c511191b4d8942b1db92f7dee (patch) | |
tree | 4f59cfedd593da4e24354659d81b9ff28e9b635e /src/native_bus.pyx | |
parent | update doc (diff) | |
download | python-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.pyx | 2 |
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 |