[kernel-team] 25/86: lib/kconfigeditor/kconfig/menu/file.py: Name expression correctly.
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Mon Dec 21 00:34:55 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 9a7eb96a1d336c8ead1aa22949c4173b3c3b2e45
Author: Bastian Blank <waldi at debian.org>
Date: Thu Mar 13 10:08:41 2008 +0000
lib/kconfigeditor/kconfig/menu/file.py: Name expression correctly.
svn path=/people/waldi/utils/kconfigeditor2/; revision=10825
---
.../lib/kconfigeditor/kconfig/menu/file.py | 26 +++++++++++-----------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py b/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py
index c578ffa..084099c 100644
--- a/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py
+++ b/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py
@@ -148,7 +148,7 @@ class _BlockContainerCommon(_BlockContainer):
class _BlockContainerDepends(_BlockContainer):
def process_depends(self, text, ind):
- _BlockType(self, text, ind)
+ _Expression(self, text)
class _BlockContainerMenu(_BlockContainer):
def process_menu(self, text, ind):
@@ -189,7 +189,7 @@ class _BlockChoice(_BlockObject, _BlockContainerCommon):
_BlockConfigData(self, self.entry)
def process_default(self, text, ind):
- _BlockType(self, text, ind)
+ _Expression(self, text)
def process_endchoice(self, text, ind):
self.pop()
@@ -225,7 +225,7 @@ $"""
text = match.group('expression')
else:
raise Exception
- _BlockType(self, text, ind)
+ _Expression(self, text)
def process_bool(self, text, ind):
# TODO
@@ -234,13 +234,13 @@ $"""
process_boolean = process_bool
def process_default(self, text, ind):
- _BlockType(self, text, ind)
+ _Expression(self, text)
def process_def_bool(self, text, ind):
- _BlockType(self, text, ind)
+ _Expression(self, text)
def process_def_tristate(self, text, ind):
- _BlockType(self, text, ind)
+ _Expression(self, text)
def process_help(self, text, ind):
_BlockHelp(self, ind)
@@ -254,7 +254,7 @@ $"""
self._process_prompt(text, ind)
def process_option(self, text, ind):
- _BlockType(self, text, ind)
+ _Expression(self, text)
def process_optional(self, text, ind):
pass
@@ -263,10 +263,10 @@ $"""
self._process_prompt(text, ind)
def process_range(self, text, ind):
- _BlockType(self, text, ind)
+ _Expression(self, text)
def process_select(self, text, ind):
- _BlockType(self, text, ind)
+ _Expression(self, text)
def process_string(self, text, ind):
# TODO
@@ -312,7 +312,7 @@ class _BlockIf(_BlockObject,
def __init__(self, parent, expression):
super(_BlockIf, self).__init__(parent)
self.entry = parent.entry
- _BlockType(self, expression, '')
+ _Expression(self, expression)
def process_endif(self, text, ind):
self.pop()
@@ -348,9 +348,9 @@ class _BlockSource(_BlockObject):
self.entry = FileSource(text)
parent.entry.append(self.entry)
-class _BlockType(_Element):
- def __init__(self, parent, text, ind):
- super(_BlockType, self).__init__(parent)
+class _Expression(_Element):
+ def __init__(self, parent, text):
+ super(_Expression, self).__init__(parent)
self.process_line(text)
def process_line(self, text):
--
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