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
53855c64
Commit
53855c64
authored
Apr 17, 2007
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the xmllib module that was obsolete.
parent
e6c6e3d9
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
1271 deletions
+1
-1271
Doc/howto/regex.tex
Doc/howto/regex.tex
+1
-2
Doc/lib/lib.tex
Doc/lib/lib.tex
+0
-1
Doc/lib/libxmllib.tex
Doc/lib/libxmllib.tex
+0
-287
Lib/test/test_xmllib.py
Lib/test/test_xmllib.py
+0
-51
Lib/test/xmltests.py
Lib/test/xmltests.py
+0
-1
Lib/xmllib.py
Lib/xmllib.py
+0
-929
No files found.
Doc/howto/regex.tex
View file @
53855c64
...
...
@@ -522,8 +522,7 @@ then the module functions are probably more convenient. If a program
contains a lot of regular expressions, or re
-
uses the same ones in
several locations, then it might be worthwhile to collect all the
definitions in one place, in a section of code that compiles all the
REs ahead of time. To take an example from the standard library,
here's an extract from
\file
{
xmllib.py
}
:
REs ahead of time. To take an example from the standard library:
\begin
{
verbatim
}
ref
=
re.compile
(
...
)
...
...
Doc/lib/lib.tex
View file @
53855c64
...
...
@@ -171,7 +171,6 @@ and how to embed it in other applications.
\input
{
xmlsaxutils
}
\input
{
xmlsaxreader
}
\input
{
libetree
}
% \input{libxmllib}
\input
{
fileformats
}
% Miscellaneous file formats
\input
{
libcsv
}
...
...
Doc/lib/libxmllib.tex
deleted
100644 → 0
View file @
e6c6e3d9
This diff is collapsed.
Click to expand it.
Lib/test/test_xmllib.py
deleted
100644 → 0
View file @
e6c6e3d9
'''Test module to thest the xmllib module.
Sjoerd Mullender
'''
testdoc
=
"""
\
<?xml version="1.0" encoding="UTF-8" standalone='yes' ?>
<!-- comments aren't allowed before the <?xml?> tag,
but they are allowed before the <!DOCTYPE> tag -->
<?processing instructions are allowed in the same places as comments ?>
<!DOCTYPE greeting [
<!ELEMENT greeting (#PCDATA)>
]>
<greeting>Hello, world!</greeting>
"""
nsdoc
=
"<foo xmlns='URI' attr='val'/>"
import
warnings
warnings
.
filterwarnings
(
"ignore"
,
".* xmllib .* obsolete.*"
,
DeprecationWarning
,
r'xmllib$'
)
from
test
import
test_support
import
unittest
import
xmllib
class
XMLParserTestCase
(
unittest
.
TestCase
):
def
test_simple
(
self
):
parser
=
xmllib
.
XMLParser
()
for
c
in
testdoc
:
parser
.
feed
(
c
)
parser
.
close
()
def
test_default_namespace
(
self
):
class
H
(
xmllib
.
XMLParser
):
def
unknown_starttag
(
self
,
name
,
attr
):
self
.
name
,
self
.
attr
=
name
,
attr
h
=
H
()
h
.
feed
(
nsdoc
)
h
.
close
()
# The default namespace applies to elements...
self
.
assertEquals
(
h
.
name
,
"URI foo"
)
# but not to attributes
self
.
assertEquals
(
h
.
attr
,
{
'attr'
:
'val'
})
def
test_main
():
test_support
.
run_unittest
(
XMLParserTestCase
)
if
__name__
==
"__main__"
:
test_main
()
Lib/test/xmltests.py
View file @
53855c64
...
...
@@ -17,5 +17,4 @@ runtest("test.test_pyexpat")
runtest
(
"test.test_sax"
)
runtest
(
"test.test_xml_etree"
)
runtest
(
"test.test_xml_etree_c"
)
runtest
(
"test.test_xmllib"
)
runtest
(
"test.test_xmlrpc"
)
Lib/xmllib.py
deleted
100644 → 0
View file @
e6c6e3d9
This diff is collapsed.
Click to expand it.
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