Commit c40cdf72 authored by Fred Drake's avatar Fred Drake

Once we're done with the sys module, remove it from the namespace so

this module is "import *" safe.
parent 691270fe
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import sys import sys
if sys.platform[:4] == "java": if sys.platform[:4] == "java":
from java.lang import Exception from java.lang import Exception
del sys
# ===== SAXEXCEPTION ===== # ===== SAXEXCEPTION =====
...@@ -15,7 +16,7 @@ class SAXException(Exception): ...@@ -15,7 +16,7 @@ class SAXException(Exception):
the exception; instead, you can simply read the information in the exception; instead, you can simply read the information in
it.""" it."""
def __init__(self, msg, exception = None): def __init__(self, msg, exception=None):
"""Creates an exception. The message is required, but the exception """Creates an exception. The message is required, but the exception
is optional.""" is optional."""
self._msg = msg self._msg = msg
...@@ -103,6 +104,3 @@ class SAXNotSupportedException(SAXException): ...@@ -103,6 +104,3 @@ class SAXNotSupportedException(SAXException):
perform is requested (specifically setting a state or value). SAX perform is requested (specifically setting a state or value). SAX
applications and extensions may use this class for similar applications and extensions may use this class for similar
purposes.""" purposes."""
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