From 3acfcd1e1aa5129e4c8981269edced2eeaafbb02 Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Tue, 15 Jul 2008 11:50:45 +0800 Subject: Refine coding style of common.py --- ibus/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ibus/common.py b/ibus/common.py index c3fd3d6..3c7f910 100644 --- a/ibus/common.py +++ b/ibus/common.py @@ -41,7 +41,7 @@ display = os.environ["DISPLAY"] if "." not in display: display += ".0" -IBUS_ADDR = "unix:path=/tmp/ibus-%s/ibus-%s" % (getpass.getuser (), display.replace (":", "-")) +IBUS_ADDR = "unix:path=/tmp/ibus-%s/ibus-%s" % (getpass.getuser(), display.replace(":", "-")) # IBUS_ADDR = "tcp:host=localhost,port=7799" IBUS_IFACE = "org.freedesktop.IBus" @@ -53,10 +53,10 @@ IBUS_ENGINE_FACTORY_IFACE = "org.freedesktop.IBus.EngineFactory" IBUS_ENGINE_IFACE = "org.freedesktop.IBus.Engine" IBUS_PANEL_IFACE = "org.freedesktop.IBus.Panel" -def default_reply_handler ( *args): +def default_reply_handler( *args): pass -def default_error_handler (e): +def default_error_handler(e): print >> sys.stderr, e DEFAULT_ASYNC_HANDLERS = { -- cgit