From: martin f. krafft Date: Fri, 21 Mar 2008 22:17:37 +0000 (+0100) Subject: put XMLStreamParser in public namespace X-Git-Tag: 2.41~27 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=9134145d827c38dc2ee4347e9ee1a83aeedbe187;hp=fd2ddd9e87f758e5d2987708321ec0c6c0dd6898 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 --- diff --git a/plugins/proxy.py b/plugins/proxy.py index b4758b060..2b841000e 100644 --- a/plugins/proxy.py +++ b/plugins/proxy.py @@ -32,7 +32,7 @@ class _IkiWikiExtPluginXMLRPCDispatcher(SimpleXMLRPCDispatcher): def dispatch(self, method, params): return self._dispatch(method, params) -class _XMLStreamParser(object): +class XMLStreamParser(object): def __init__(self): self._parser = xml.parsers.expat.ParserCreate() @@ -95,7 +95,7 @@ class _IkiWikiExtPluginXMLRPCHandler(object): @staticmethod def _read(in_fd): ret = None - parser = _XMLStreamParser() + parser = XMLStreamParser() while True: line = in_fd.readline() if len(line) == 0: