[kernel] r13139 - people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig

Bastian Blank waldi at alioth.debian.org
Mon Mar 16 22:07:51 UTC 2009


Author: waldi
Date: Mon Mar 16 22:07:50 2009
New Revision: 13139

Log:
Cleanup.


Modified:
   people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py

Modified: people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py
==============================================================================
--- people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py	(original)
+++ people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py	Mon Mar 16 22:07:50 2009
@@ -86,7 +86,7 @@
             return
 
         processed.add(entry.name)
-        for i in value.dump(entry):
+        for i in value.write():
             yield i
 
     def _write_check_visible(self, menufiles):
@@ -159,14 +159,10 @@
     def __init__(self, name, comments):
         self.name, self.comments = name, comments
 
-    def dump(self, config):
-        ret = ["#. %s" % i for i in self.comments]
-#        if config.type == FileConfig.TYPE_BOOL:
-#            ret.append("# type: bool")
-#        elif config.type == FileConfig.TYPE_TRISTATE:
-#            ret.append("# type: tristate")
-        ret.append(str(self))
-        return ret
+    def write(self):
+        for comment in self.comments:
+            yield '#. ' + comment
+        yield str(self)
 
 # TODO
 class FileEntryString(FileEntry):



More information about the Kernel-svn-changes mailing list