Commit 279aa6ca authored by Fred Drake's avatar Fred Drake

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

parent 5080b330
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment