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
6c75301e
Commit
6c75301e
authored
Mar 05, 2012
by
Florent Xicluna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xml.dom: fix typo, drop unused imports.
parent
fb067468
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
Lib/xml/dom/domreg.py
Lib/xml/dom/domreg.py
+0
-2
Lib/xml/dom/expatbuilder.py
Lib/xml/dom/expatbuilder.py
+1
-3
No files found.
Lib/xml/dom/domreg.py
View file @
6c75301e
...
@@ -2,8 +2,6 @@
...
@@ -2,8 +2,6 @@
directly. Instead, the functions getDOMImplementation and
directly. Instead, the functions getDOMImplementation and
registerDOMImplementation should be imported from xml.dom."""
registerDOMImplementation should be imported from xml.dom."""
from
xml.dom.minicompat
import
*
# isinstance, StringTypes
# This is a list of well-known implementations. Well-known names
# This is a list of well-known implementations. Well-known names
# should be published by posting to xml-sig@python.org, and are
# should be published by posting to xml-sig@python.org, and are
# subsequently recorded in this file.
# subsequently recorded in this file.
...
...
Lib/xml/dom/expatbuilder.py
View file @
6c75301e
...
@@ -33,8 +33,6 @@ from xml.parsers import expat
...
@@ -33,8 +33,6 @@ from xml.parsers import expat
from
xml.dom.minidom
import
_append_child
,
_set_attribute_node
from
xml.dom.minidom
import
_append_child
,
_set_attribute_node
from
xml.dom.NodeFilter
import
NodeFilter
from
xml.dom.NodeFilter
import
NodeFilter
from
xml.dom.minicompat
import
*
TEXT_NODE
=
Node
.
TEXT_NODE
TEXT_NODE
=
Node
.
TEXT_NODE
CDATA_SECTION_NODE
=
Node
.
CDATA_SECTION_NODE
CDATA_SECTION_NODE
=
Node
.
CDATA_SECTION_NODE
DOCUMENT_NODE
=
Node
.
DOCUMENT_NODE
DOCUMENT_NODE
=
Node
.
DOCUMENT_NODE
...
@@ -755,7 +753,7 @@ class Namespaces:
...
@@ -755,7 +753,7 @@ class Namespaces:
a
=
minidom
.
Attr
(
"xmlns"
,
XMLNS_NAMESPACE
,
a
=
minidom
.
Attr
(
"xmlns"
,
XMLNS_NAMESPACE
,
"xmlns"
,
EMPTY_PREFIX
)
"xmlns"
,
EMPTY_PREFIX
)
a
.
value
=
uri
a
.
value
=
uri
a
.
ownerDocu
em
nt
=
self
.
document
a
.
ownerDocu
me
nt
=
self
.
document
_set_attribute_node
(
node
,
a
)
_set_attribute_node
(
node
,
a
)
del
self
.
_ns_ordered_prefixes
[:]
del
self
.
_ns_ordered_prefixes
[:]
...
...
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