[kernel-team] 44/86: Cleanup.
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Mon Dec 21 00:34:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch benh/kconfigeditor2
in repository kernel-team.
commit 753f1c9f60fe6a58fb7852816ed49016bc2dc6d3
Author: Bastian Blank <waldi at debian.org>
Date: Mon Mar 16 22:07:50 2009 +0000
Cleanup.
svn path=/people/waldi/utils/kconfigeditor2/; revision=13139
---
utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py b/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py
index 67a92f0..0011afa 100644
--- a/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py
+++ b/utils/kconfigeditor2/lib/kconfigeditor/kconfig/config.py
@@ -86,7 +86,7 @@ class File(dict):
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 @@ class FileEntry(object):
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):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kernel-team.git
More information about the Kernel-svn-changes
mailing list