changeset 1072:c1f5ee67a02b

use exception class instead of string
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 27 Jul 2006 21:24:28 +0200
parents 64e513264aed
children a6bb4df3888d cf4a2f11c959
files MoinMoin/xmlrpc/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/xmlrpc/__init__.py	Thu Jul 27 21:18:46 2006 +0200
+++ b/MoinMoin/xmlrpc/__init__.py	Thu Jul 27 21:24:28 2006 +0200
@@ -59,7 +59,7 @@
         @rtype: str
         @return: string in config.charset
         """
-        raise "NotImplementedError"
+        raise NotImplementedError("please implement _instr in derived class")
 
     def _outstr(self, text):
         """ Convert outbound string to utf-8.
@@ -68,7 +68,7 @@
         @rtype: str
         @return: string in utf-8
         """
-        raise "NotImplementedError"
+        raise NotImplementedError("please implement _outstr in derived class")
 
     def _inlob(self, text):
         """ Convert inbound base64-encoded utf-8 to Large OBject.