diff options
-rw-r--r-- | Lib/xml/dom/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/xml/dom/__init__.py b/Lib/xml/dom/__init__.py index 5eb15ae..2dbb695 100644 --- a/Lib/xml/dom/__init__.py +++ b/Lib/xml/dom/__init__.py @@ -67,6 +67,9 @@ class DOMException(Exception): "DOMException should not be instantiated directly") apply(Exception.__init__, (self,) + args, kw) + def _get_code(self): + return self.code + class IndexSizeErr(DOMException): code = INDEX_SIZE_ERR |