Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dad51678
Commit
dad51678
authored
Sep 18, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Once we're done with the sys module, remove it from the namespace so
this module is "import *" safe.
parent
28e7cf33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
Lib/xml/sax/_exceptions.py
Lib/xml/sax/_exceptions.py
+11
-13
No files found.
Lib/xml/sax/_exceptions.py
View file @
dad51678
...
...
@@ -2,6 +2,7 @@
import
sys
if
sys
.
platform
[:
4
]
==
"java"
:
from
java.lang
import
Exception
del
sys
# ===== SAXEXCEPTION =====
...
...
@@ -15,7 +16,7 @@ class SAXException(Exception):
the exception; instead, you can simply read the information in
it."""
def
__init__
(
self
,
msg
,
exception
=
None
):
def
__init__
(
self
,
msg
,
exception
=
None
):
"""Creates an exception. The message is required, but the exception
is optional."""
self
.
_msg
=
msg
...
...
@@ -103,6 +104,3 @@ class SAXNotSupportedException(SAXException):
perform is requested (specifically setting a state or value). SAX
applications and extensions may use this class for similar
purposes."""
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment