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
martin f. krafft 2008-03-21 23:17:37 +01:00 committed by Joey Hess
parent fd2ddd9e87
commit 9134145d82
1 changed files with 2 additions and 2 deletions

View File

@ -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: