mallardwriter: Put process_other with the rest of the processors
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 9 Jan 2013 06:50:09 +0000 (01:50 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 9 Jan 2013 08:16:13 +0000 (03:16 -0500)
Simple cleanup

giscanner/mallardwriter.py

index b46ed12..f688401 100644 (file)
@@ -174,9 +174,6 @@ class MallardFormatter(object):
             result += '</p>'
         return result
 
-    def _process_other(self, namespace, match, props):
-        return self.escape(match)
-
     def _resolve_type(self, ident):
         try:
             matches = self._transformer.split_ctype_namespaces(ident)
@@ -205,6 +202,9 @@ class MallardFormatter(object):
                 return item
         raise KeyError("Could not find %s" % (name, ))
 
+    def _process_other(self, namespace, match, props):
+        return self.escape(match)
+
     def _process_property(self, namespace, match, props):
         type_node = self._resolve_type(props['type_name'])
         if type_node is None: