diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-15 11:50:45 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-15 11:50:45 +0800 |
| commit | 3acfcd1e1aa5129e4c8981269edced2eeaafbb02 (patch) | |
| tree | a2fe86aa3fbba42f43feff7958761a9af967f8fc /ibus/common.py | |
| parent | 35b29c814444526280f9a301c1310546c9e72217 (diff) | |
| download | ibus-3acfcd1e1aa5129e4c8981269edced2eeaafbb02.tar.gz ibus-3acfcd1e1aa5129e4c8981269edced2eeaafbb02.tar.xz ibus-3acfcd1e1aa5129e4c8981269edced2eeaafbb02.zip | |
Refine coding style of common.py
Diffstat (limited to 'ibus/common.py')
| -rw-r--r-- | ibus/common.py | 6 |
1 files 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 = { |
