mirror of
https://github.com/python/cpython.git
synced 2025-10-18 20:58:48 +00:00
DOMException.__init__(): Remember to pass self to Exception.__init__().
This commit is contained in:
parent
5080b33046
commit
279aa6cabc
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class DOMException(Exception):
|
||||||
if self.__class__ is DOMException:
|
if self.__class__ is DOMException:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"DOMException should not be instaniated directly")
|
"DOMException should not be instaniated directly")
|
||||||
apply(Exception.__init__, args, kw)
|
apply(Exception.__init__, (self,) + args, kw)
|
||||||
|
|
||||||
|
|
||||||
class IndexSizeErr(DOMException):
|
class IndexSizeErr(DOMException):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue