put XMLStreamParser in public namespace
Since we might throw sub-class exceptions, the class should be in the public namespace, meaning its name should not be prefixed with _. Signed-off-by: martin f. krafft <madduck@madduck.net>master
parent
fd2ddd9e87
commit
9134145d82
|
@ -32,7 +32,7 @@ class _IkiWikiExtPluginXMLRPCDispatcher(SimpleXMLRPCDispatcher):
|
||||||
def dispatch(self, method, params):
|
def dispatch(self, method, params):
|
||||||
return self._dispatch(method, params)
|
return self._dispatch(method, params)
|
||||||
|
|
||||||
class _XMLStreamParser(object):
|
class XMLStreamParser(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._parser = xml.parsers.expat.ParserCreate()
|
self._parser = xml.parsers.expat.ParserCreate()
|
||||||
|
@ -95,7 +95,7 @@ class _IkiWikiExtPluginXMLRPCHandler(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _read(in_fd):
|
def _read(in_fd):
|
||||||
ret = None
|
ret = None
|
||||||
parser = _XMLStreamParser()
|
parser = XMLStreamParser()
|
||||||
while True:
|
while True:
|
||||||
line = in_fd.readline()
|
line = in_fd.readline()
|
||||||
if len(line) == 0:
|
if len(line) == 0:
|
||||||
|
|
Loading…
Reference in New Issue