[pygtk] Replace NotImplemented with NotImplementedError
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk] Replace NotImplemented with NotImplementedError
- Date: Mon, 27 Sep 2010 22:03:48 +0000 (UTC)
commit 22eab483d430e3fb5922edf4ab24fe6ed3590e7f
Author: Behnam Esfahbod ZWNJ <behnam zwnj org>
Date: Sun Sep 26 01:25:02 2010 +0330
Replace NotImplemented with NotImplementedError
examples/gtk/application.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/examples/gtk/application.py b/examples/gtk/application.py
index 10f0ea2..5d65428 100644
--- a/examples/gtk/application.py
+++ b/examples/gtk/application.py
@@ -148,19 +148,19 @@ class Application(gtk.Window):
# Override in subclass
def new(self):
- raise NotImplemented("Open")
+ raise NotImplementedError("Open")
def open(self):
- raise NotImplemented("Open")
+ raise NotImplementedError("Open")
def save(self):
- raise NotImplemented("Save")
+ raise NotImplementedError("Save")
def close(self):
- raise NotImplemented("Close")
+ raise NotImplementedError("Close")
def about(self):
- raise NotImplemented("About")
+ raise NotImplementedError("About")
def run(self):
self.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]