summaryrefslogtreecommitdiff
path: root/poezio/poezio.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-28 00:25:01 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-28 00:25:01 +0100
commit29ac9ec597c195f1325cc764594d6b57b019e23a (patch)
tree4f56c694b2c16e625b599bed61f23b91ec27e613 /poezio/poezio.py
parent36377f78ba388e995687b0179ec351f8fbd54afe (diff)
downloadpoezio-29ac9ec597c195f1325cc764594d6b57b019e23a.tar.gz
poezio-29ac9ec597c195f1325cc764594d6b57b019e23a.tar.bz2
poezio-29ac9ec597c195f1325cc764594d6b57b019e23a.tar.xz
poezio-29ac9ec597c195f1325cc764594d6b57b019e23a.zip
Import Singleton instead of its module, and remove unused imports.
Diffstat (limited to 'poezio/poezio.py')
-rw-r--r--poezio/poezio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/poezio.py b/poezio/poezio.py
index 15da5334..c0ec64e0 100644
--- a/poezio/poezio.py
+++ b/poezio/poezio.py
@@ -17,7 +17,7 @@ import logging
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
-from . import singleton
+from . singleton import Singleton
def test_curses():
"""
@@ -77,7 +77,7 @@ def main():
log = logging.getLogger('')
signal.signal(signal.SIGINT, signal.SIG_IGN) # ignore ctrl-c
- cocore = singleton.Singleton(core.Core)
+ cocore = Singleton(core.Core)
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)