From 37acd165fcdee02ec0b33b52fadcf8ae963cd8a6 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 29 Aug 2009 09:49:16 +0200 Subject: [PATCH] [magneto] properly raise NotImplementedError exceptions --- magneto/src/magneto/core/interfaces.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/magneto/src/magneto/core/interfaces.py b/magneto/src/magneto/core/interfaces.py index 5cde332c6..4599e8a18 100644 --- a/magneto/src/magneto/core/interfaces.py +++ b/magneto/src/magneto/core/interfaces.py @@ -36,7 +36,7 @@ class MagnetoCoreUI: Graphical Interface startup method. Must be reimplemented. """ - raise NotImplementedError + raise NotImplementedError() def show_alert(self, title, text, urgency = None, force = False): """ @@ -51,7 +51,7 @@ class MagnetoCoreUI: @param force: force user notification @type force: bool """ - raise NotImplementedError + raise NotImplementedError() def update_tooltip(self, tip): """ @@ -60,31 +60,31 @@ class MagnetoCoreUI: @param tip: new tooltip text @type tip: string """ - raise NotImplementedError + raise NotImplementedError() def change_icon(self, image): """ Update applet icon """ - raise NotImplementedError + raise NotImplementedError() def applet_context_menu(self): """ When context menu action is triggered """ - raise NotImplementedError + raise NotImplementedError() def show_notice_window(self): """ Show the Updates Notification window """ - raise NotImplementedError + raise NotImplementedError() def hide_notice_window(self): """ Hide the Updates Notification window """ - raise NotImplementedError + raise NotImplementedError() class MagnetoCore(MagnetoCoreUI):