From cc735b11763b5f8f617fc5dc898bb3397ca45868 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Tue, 26 Jul 2016 16:45:27 +0200 Subject: [PATCH] expose xml.sax Exceptions (#280) --- stdlib/2.7/xml/sax/__init__.pyi | 20 ++++++++++++++++++++ stdlib/3/xml/sax/__init__.pyi | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 stdlib/3/xml/sax/__init__.pyi diff --git a/stdlib/2.7/xml/sax/__init__.pyi b/stdlib/2.7/xml/sax/__init__.pyi index e69de29bb..9e3d009d9 100644 --- a/stdlib/2.7/xml/sax/__init__.pyi +++ b/stdlib/2.7/xml/sax/__init__.pyi @@ -0,0 +1,20 @@ +# Stubs for xml.sax (Python 2.7) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +class SAXException(Exception): + def __init__(self, msg, exception=None): ... + def getMessage(self): ... + def getException(self): ... + def __getitem__(self, ix): ... + +class SAXParseException(SAXException): + def __init__(self, msg, exception, locator): ... + def getColumnNumber(self): ... + def getLineNumber(self): ... + def getPublicId(self): ... + def getSystemId(self): ... + +class SAXNotRecognizedException(SAXException): ... +class SAXNotSupportedException(SAXException): ... +class SAXReaderNotAvailable(SAXNotSupportedException): ... diff --git a/stdlib/3/xml/sax/__init__.pyi b/stdlib/3/xml/sax/__init__.pyi new file mode 100644 index 000000000..a0a0a8978 --- /dev/null +++ b/stdlib/3/xml/sax/__init__.pyi @@ -0,0 +1,20 @@ +# Stubs for xml.sax (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +class SAXException(Exception): + def __init__(self, msg, exception=None): ... + def getMessage(self): ... + def getException(self): ... + def __getitem__(self, ix): ... + +class SAXParseException(SAXException): + def __init__(self, msg, exception, locator): ... + def getColumnNumber(self): ... + def getLineNumber(self): ... + def getPublicId(self): ... + def getSystemId(self): ... + +class SAXNotRecognizedException(SAXException): ... +class SAXNotSupportedException(SAXException): ... +class SAXReaderNotAvailable(SAXNotSupportedException): ...