Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 279aa6c

Browse files
committed
DOMException.__init__(): Remember to pass self to Exception.__init__().
1 parent 5080b33 commit 279aa6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/xml/dom/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, *args, **kw):
6565
if self.__class__ is DOMException:
6666
raise RuntimeError(
6767
"DOMException should not be instaniated directly")
68-
apply(Exception.__init__, args, kw)
68+
apply(Exception.__init__, (self,) + args, kw)
6969

7070

7171
class IndexSizeErr(DOMException):

0 commit comments

Comments
 (0)