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

Bastian Blank waldi at alioth.debian.org
Thu Mar 13 10:08:41 UTC 2008


Author: waldi
Date: Thu Mar 13 10:08:41 2008
New Revision: 10825

Log:
lib/kconfigeditor/kconfig/menu/file.py: Name expression correctly.


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

Modified: people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py
==============================================================================
--- people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py	(original)
+++ people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py	Thu Mar 13 10:08:41 2008
@@ -148,7 +148,7 @@
 
 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 @@
         _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 @@
     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 @@
         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):



More information about the Kernel-svn-changes mailing list