From 02f6c2f47b49cf55ccb553122bd5baca903977a7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 30 May 2019 09:36:47 +0530 Subject: [PATCH] Fix unicode porting breaking dbus_service.py --- src/calibre/utils/dbus_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/utils/dbus_service.py b/src/calibre/utils/dbus_service.py index 928f46fb32..2d14506260 100644 --- a/src/calibre/utils/dbus_service.py +++ b/src/calibre/utils/dbus_service.py @@ -45,7 +45,7 @@ from dbus.exceptions import ( from dbus.lowlevel import ErrorMessage, MethodReturnMessage, MethodCallMessage from dbus.proxies import LOCAL_PATH -from polyglot.builtins import itervalues, zip, is_py3 +from polyglot.builtins import itervalues, zip, is_py3, native_string_type class dbus_property(object): @@ -501,7 +501,7 @@ class InterfaceType(type): # Define Interface as an instance of the metaclass InterfaceType, in a way # that is compatible across both Python 2 and Python 3. -Interface = InterfaceType('Interface', (object,), {}) +Interface = InterfaceType(native_string_type('Interface'), (object,), {}) class PropertiesInterface(Interface):