[mousetrap/gnome3-wip: 86/240] Replace Exception with NotImplementedError in interface.
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 86/240] Replace Exception with NotImplementedError in interface.
- Date: Mon, 8 Sep 2014 15:19:47 +0000 (UTC)
commit 5cbee3178178c5a2e1a76d0ae804b82803d32906
Author: Stoney Jackson <dr stoney gmail com>
Date: Thu Jun 12 13:34:42 2014 -0400
Replace Exception with NotImplementedError in interface.
src/mousetrap/pointers/interface.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/mousetrap/pointers/interface.py b/src/mousetrap/pointers/interface.py
index b463df9..74653d3 100644
--- a/src/mousetrap/pointers/interface.py
+++ b/src/mousetrap/pointers/interface.py
@@ -6,8 +6,8 @@ that inherits mousetrap.pointers.interface.Pointer.
class Pointer(object):
def update_image(self, image):
- raise Exception('Unimplemented method add_image().')
+ raise NotImplementedError('Must implement.')
def get_new_position(self):
'''Returns new location (x, y) or None if no change.'''
- raise Exception('Unimplemented method get_position().')
+ raise NotImplementedError('Must implement.')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]