mirror of https://github.com/python/cpython
Remove mentions of the nonexisting SlowParser in xmlrpc.client.
This commit is contained in:
parent
317185a533
commit
cef803f82c
|
@ -113,7 +113,6 @@ Exported classes:
|
||||||
XML-RPC value
|
XML-RPC value
|
||||||
Binary binary data wrapper
|
Binary binary data wrapper
|
||||||
|
|
||||||
SlowParser Slow but safe standard parser (based on xmllib)
|
|
||||||
Marshaller Generate an XML-RPC params chunk from a Python data structure
|
Marshaller Generate an XML-RPC params chunk from a Python data structure
|
||||||
Unmarshaller Unmarshal an XML-RPC response from incoming XML event message
|
Unmarshaller Unmarshal an XML-RPC response from incoming XML event message
|
||||||
Transport Handles an HTTP transaction to an XML-RPC server
|
Transport Handles an HTTP transaction to an XML-RPC server
|
||||||
|
@ -136,6 +135,7 @@ Exported functions:
|
||||||
|
|
||||||
import re, time, operator
|
import re, time, operator
|
||||||
import http.client
|
import http.client
|
||||||
|
from xml.parsers import expat
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# Internal stuff
|
# Internal stuff
|
||||||
|
@ -439,13 +439,6 @@ WRAPPERS = (DateTime, Binary)
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# XML parsers
|
# XML parsers
|
||||||
|
|
||||||
try:
|
|
||||||
from xml.parsers import expat
|
|
||||||
if not hasattr(expat, "ParserCreate"):
|
|
||||||
raise ImportError
|
|
||||||
except ImportError:
|
|
||||||
ExpatParser = None # expat not available
|
|
||||||
else:
|
|
||||||
class ExpatParser:
|
class ExpatParser:
|
||||||
# fast expat parser for Python 2.0 and later.
|
# fast expat parser for Python 2.0 and later.
|
||||||
def __init__(self, target):
|
def __init__(self, target):
|
||||||
|
@ -912,10 +905,8 @@ def getparser(use_datetime=0):
|
||||||
target = Unmarshaller(use_datetime=use_datetime)
|
target = Unmarshaller(use_datetime=use_datetime)
|
||||||
if FastParser:
|
if FastParser:
|
||||||
parser = FastParser(target)
|
parser = FastParser(target)
|
||||||
elif ExpatParser:
|
|
||||||
parser = ExpatParser(target)
|
|
||||||
else:
|
else:
|
||||||
parser = SlowParser(target)
|
parser = ExpatParser(target)
|
||||||
return parser, target
|
return parser, target
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in New Issue