summaryrefslogtreecommitdiff
path: root/poezio/poezio.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-30 23:18:59 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-30 23:29:51 +0100
commitb685df501a21e4c59371804385fedc4a2bc01823 (patch)
tree90608056b8fd31664dfe3cf93a2a3a7e1427a3c9 /poezio/poezio.py
parentd636d57df4d447b95a014b8b5728ae928f05ebbf (diff)
downloadpoezio-b685df501a21e4c59371804385fedc4a2bc01823.tar.gz
poezio-b685df501a21e4c59371804385fedc4a2bc01823.tar.bz2
poezio-b685df501a21e4c59371804385fedc4a2bc01823.tar.xz
poezio-b685df501a21e4c59371804385fedc4a2bc01823.zip
Remove every now-useless usage of the Singleton function.
Diffstat (limited to 'poezio/poezio.py')
-rw-r--r--poezio/poezio.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/poezio/poezio.py b/poezio/poezio.py
index f136785e..55c1afea 100644
--- a/poezio/poezio.py
+++ b/poezio/poezio.py
@@ -17,8 +17,6 @@ import logging
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
-from poezio.singleton import Singleton
-
def test_curses():
"""
Check if the system ncurses linked with python has unicode capabilities.
@@ -77,7 +75,7 @@ def main():
log = logging.getLogger('')
signal.signal(signal.SIGINT, signal.SIG_IGN) # ignore ctrl-c
- cocore = Singleton(core.Core)
+ cocore = 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)