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
491ded78
Commit
491ded78
authored
Sep 29, 2000
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dependency from saxutils when loading xmlreader
parent
9f11cf88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Lib/xml/sax/xmlreader.py
Lib/xml/sax/xmlreader.py
+1
-2
No files found.
Lib/xml/sax/xmlreader.py
View file @
491ded78
...
@@ -85,8 +85,6 @@ class XMLReader:
...
@@ -85,8 +85,6 @@ class XMLReader:
"Sets the value of a SAX2 property."
"Sets the value of a SAX2 property."
raise
SAXNotRecognizedException
(
"Property '%s' not recognized"
%
name
)
raise
SAXNotRecognizedException
(
"Property '%s' not recognized"
%
name
)
import
saxutils
class
IncrementalParser
(
XMLReader
):
class
IncrementalParser
(
XMLReader
):
"""This interface adds three extra methods to the XMLReader
"""This interface adds three extra methods to the XMLReader
interface that allow XML parsers to support incremental
interface that allow XML parsers to support incremental
...
@@ -112,6 +110,7 @@ class IncrementalParser(XMLReader):
...
@@ -112,6 +110,7 @@ class IncrementalParser(XMLReader):
XMLReader
.
__init__
(
self
)
XMLReader
.
__init__
(
self
)
def
parse
(
self
,
source
):
def
parse
(
self
,
source
):
import
saxutils
source
=
saxutils
.
prepare_input_source
(
source
)
source
=
saxutils
.
prepare_input_source
(
source
)
self
.
prepareParser
(
source
)
self
.
prepareParser
(
source
)
...
...
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