From 502ba6f465b6078c0bab66f6f0cc50b3047bf676 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Tue, 4 Aug 2015 13:20:54 -0300 Subject: [PATCH] Moved abstractsignal methods to abstractmethod --- colab/plugins/utils/signals.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/colab/plugins/utils/signals.py b/colab/plugins/utils/signals.py index b1cd4b5..212ec9f 100644 --- a/colab/plugins/utils/signals.py +++ b/colab/plugins/utils/signals.py @@ -1,8 +1,13 @@ + +from abc import abstractmethod + + class AbstractSignal(): + @abstractmethod def register_signal(self): - raise(Exception, 'NOT IMPLEMENTED') - + raise NotImplementedError + @abstractmethod def connect_signal(self): - raise(Exception, 'NOT IMPLEMENTED') + raise NotImplementedError -- libgit2 0.21.2