summaryrefslogtreecommitdiff
path: root/poezio/poezio.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-11-12 15:03:09 +0100
committermathieui <mathieui@mathieui.net>2017-11-12 15:03:09 +0100
commitd55cc5872503567775f0d7a7731d6f489bf2299b (patch)
tree725f9e7b8144d36054447b3c82edfb45bda8df1d /poezio/poezio.py
parent92496db823db34f7f7fb1ab31eaef093a707c3e8 (diff)
downloadpoezio-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.py8
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)):