From b685df501a21e4c59371804385fedc4a2bc01823 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 30 Jun 2016 23:18:59 +0100 Subject: Remove every now-useless usage of the Singleton function. --- poezio/poezio.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'poezio/poezio.py') 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) -- cgit v1.2.3