Python 3 compat / suppress warning messages
This commit is contained in:
@@ -27,6 +27,8 @@ if sys.version_info.major < 3:
|
||||
elif sys.version_info.major >= 3:
|
||||
from functools import reduce
|
||||
|
||||
import gi
|
||||
gi.require_version('Pango', '1.0')
|
||||
from gi.repository import GLib
|
||||
from gi.repository import IBus
|
||||
from gi.repository import Pango
|
||||
|
||||
@@ -30,7 +30,7 @@ class EngineFactory(ibus.Factory):
|
||||
self.__id = 0
|
||||
|
||||
def create_engine(self, engine_name):
|
||||
print engine_name
|
||||
print(engine_name)
|
||||
if engine_name == "grc":
|
||||
self.__id += 1
|
||||
return engine.Engine(self.__bus, "%s/%d" % ("/org/freedesktop/IBus/GRC/Engine", self.__id))
|
||||
|
||||
Reference in New Issue
Block a user