Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / bin / SConsDoc.py
index 3f64a2585784eab53607a4c55077c23f732c08f6..d164d11e312a2ce3547897767ae79f4f979a9b51 100644 (file)
@@ -2,6 +2,7 @@
 #
 # Module for handling SCons documentation processing.
 #
+from __future__ import generators  ### KEEP FOR COMPATIBILITY FIXERS
 
 __doc__ = """
 This module parses home-brew XML files that document various things
@@ -218,8 +219,8 @@ class SConsDocHandler(xml.sax.handler.ContentHandler,
         self._start_dispatch = {}
         self._end_dispatch = {}
         keys = self.__class__.__dict__.keys()
-        start_tag_method_names = filter(lambda k: k[:6] == 'start_', keys)
-        end_tag_method_names = filter(lambda k: k[:4] == 'end_', keys)
+        start_tag_method_names = [k for k in keys if k[:6] == 'start_']
+        end_tag_method_names = [k for k in keys if k[:4] == 'end_']
         for method_name in start_tag_method_names:
             tag = method_name[6:]
             self._start_dispatch[tag] = getattr(self, method_name)