Refine coding style of connection.py
This commit is contained in:
Родитель
22d750f4b1
Коммит
35b29c8144
|
@ -25,10 +25,10 @@ __all__ = (
|
|||
import dbus.connection
|
||||
import ibus
|
||||
|
||||
class Connection (dbus.connection.Connection):
|
||||
def __new__ (self):
|
||||
return dbus.connection.Connection.__new__ (self, ibus.IBUS_ADDR)
|
||||
class Connection(dbus.connection.Connection):
|
||||
def __new__(cls):
|
||||
return super(Connection, cls).__new__(ibus.IBUS_ADDR)
|
||||
|
||||
def get_ibus (self):
|
||||
return self.get_object (ibus.IBUS_NAME, ibus.IBUS_PATH)
|
||||
def get_ibus(self):
|
||||
return self.get_object(ibus.IBUS_NAME, ibus.IBUS_PATH)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче