diff options
author | martin f. krafft <madduck@madduck.net> | 2008-03-21 23:17:37 +0100 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-03-21 19:16:59 -0400 |
commit | 9134145d827c38dc2ee4347e9ee1a83aeedbe187 (patch) | |
tree | a71eca58750729525d92c51aa4ef99f788e182b0 | |
parent | fd2ddd9e87f758e5d2987708321ec0c6c0dd6898 (diff) |
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>
-rw-r--r-- | plugins/proxy.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |