DOMException.__init__(): Remember to pass self to Exception.__init__().

This commit is contained in:
Fred Drake 2000-12-15 21:07:59 +00:00
parent 5080b33046
commit 279aa6cabc

View 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):