mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 15:04:08 +02:00
Fix unicode porting breaking dbus_service.py
This commit is contained in:
parent
831a938855
commit
02f6c2f47b
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@
|
|||
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 @@ def _reflect_on_property(cls, descriptor):
|
|||
|
||||
# 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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue