]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
put XMLStreamParser in public namespace
authormartin f. krafft <madduck@madduck.net>
Fri, 21 Mar 2008 22:17:37 +0000 (23:17 +0100)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 21 Mar 2008 23:16:59 +0000 (19:16 -0400)
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>
plugins/proxy.py

index b4758b06059cc60ca5e33c257ad95cf9c2feea7a..2b841000ee05331dc99c4ce86568ac229d496541 100644 (file)
@@ -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: