diff options
author | mathieui <mathieui@mathieui.net> | 2017-11-12 15:03:09 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-11-12 15:03:09 +0100 |
commit | d55cc5872503567775f0d7a7731d6f489bf2299b (patch) | |
tree | 725f9e7b8144d36054447b3c82edfb45bda8df1d /poezio/poezio.py | |
parent | 92496db823db34f7f7fb1ab31eaef093a707c3e8 (diff) | |
download | poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.tar.gz poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.tar.bz2 poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.tar.xz poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.zip |
yapf -ir
Diffstat (limited to 'poezio/poezio.py')
-rw-r--r-- | poezio/poezio.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/poezio/poezio.py b/poezio/poezio.py index f841b672..51e10d1b 100644 --- a/poezio/poezio.py +++ b/poezio/poezio.py @@ -4,8 +4,6 @@ # # Poezio is free software: you can redistribute it and/or modify # it under the terms of the zlib license. See the COPYING file. - - """ Starting point of poezio. Launches both the Connection and Gui """ @@ -16,6 +14,7 @@ import signal sys.path.append(os.path.dirname(os.path.abspath(__file__))) + def test_curses(): """ Check if the system ncurses linked with python has unicode capabilities. @@ -74,9 +73,9 @@ def main(): from poezio import core - signal.signal(signal.SIGINT, signal.SIG_IGN) # ignore ctrl-c + signal.signal(signal.SIGINT, signal.SIG_IGN) # ignore ctrl-c cocore = core.Core() - signal.signal(signal.SIGUSR1, cocore.sigusr_handler) # reload the config + signal.signal(signal.SIGUSR1, cocore.sigusr_handler) # reload the config signal.signal(signal.SIGHUP, cocore.exit_from_signal) signal.signal(signal.SIGTERM, cocore.exit_from_signal) if options.debug: @@ -84,6 +83,7 @@ def main(): cocore.start() from slixmpp.exceptions import IqError, IqTimeout + def swallow_iqerrors(loop, context): """Do not log unhandled iq errors and timeouts""" if not isinstance(context['exception'], (IqError, IqTimeout)): |