]> granicus.if.org Git - python/commitdiff
DOMException.__init__(): Remember to pass self to Exception.__init__().
authorFred Drake <fdrake@acm.org>
Fri, 15 Dec 2000 21:07:59 +0000 (21:07 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 15 Dec 2000 21:07:59 +0000 (21:07 +0000)
Lib/xml/dom/__init__.py

index b1211f4a2333f00136c6cb9ec3a6251a6f819710..ca44b2da2b68bce905982a12985624c2a861d55a 100644 (file)
@@ -65,7 +65,7 @@ class DOMException(Exception):
         if self.__class__ is DOMException:
             raise RuntimeError(
                 "DOMException should not be instaniated directly")
-        apply(Exception.__init__, args, kw)
+        apply(Exception.__init__, (self,) + args, kw)
 
 
 class IndexSizeErr(DOMException):