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
2def11a9
Commit
2def11a9
authored
Mar 24, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use *absolute* imports now that they are required. (Should this go into 2.5?)
parent
c3e54b84
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
Lib/xmlcore/sax/__init__.py
Lib/xmlcore/sax/__init__.py
+5
-5
Lib/xmlcore/sax/saxutils.py
Lib/xmlcore/sax/saxutils.py
+2
-2
Lib/xmlcore/sax/xmlreader.py
Lib/xmlcore/sax/xmlreader.py
+2
-2
No files found.
Lib/xmlcore/sax/__init__.py
View file @
2def11a9
...
...
@@ -19,11 +19,11 @@ xmlreader -- Base classes and constants which define the SAX 2 API for
expatreader -- Driver that allows use of the Expat parser with SAX.
"""
from
xmlreader
import
InputSource
from
handler
import
ContentHandler
,
ErrorHandler
from
_exceptions
import
SAXException
,
SAXNotRecognizedException
,
\
SAXParseException
,
SAXNotSupportedException
,
\
SAXReaderNotAvailable
from
.
xmlreader
import
InputSource
from
.
handler
import
ContentHandler
,
ErrorHandler
from
._exceptions
import
(
SAXException
,
SAXNotRecognizedException
,
SAXParseException
,
SAXNotSupportedException
,
SAXReaderNotAvailable
)
def
parse
(
source
,
handler
,
errorHandler
=
ErrorHandler
()):
...
...
Lib/xmlcore/sax/saxutils.py
View file @
2def11a9
...
...
@@ -4,8 +4,8 @@ convenience of application and driver writers.
"""
import
os
,
urlparse
,
urllib
,
types
import
handler
import
xmlreader
from
.
import
handler
from
.
import
xmlreader
try
:
_StringTypes
=
[
types
.
StringType
,
types
.
UnicodeType
]
...
...
Lib/xmlcore/sax/xmlreader.py
View file @
2def11a9
"""An XML Reader is the SAX 2 name for an XML parser. XML Parsers
should be based on this code. """
import
handler
from
.
import
handler
from
_exceptions
import
SAXNotSupportedException
,
SAXNotRecognizedException
from
.
_exceptions
import
SAXNotSupportedException
,
SAXNotRecognizedException
# ===== XMLREADER =====
...
...
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