[kernel] r10809 - people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu
Bastian Blank
waldi at alioth.debian.org
Tue Mar 11 17:55:18 UTC 2008
Author: waldi
Date: Tue Mar 11 17:50:50 2008
New Revision: 10809
Log:
lib/kconfigeditor/kconfig/menu/file.py
- Empty lines are not sensitive in this language.
- Expressions are selfcontained.
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 Tue Mar 11 17:50:50 2008
@@ -29,7 +29,7 @@
for line in fd:
line = line.rstrip()
if not line:
- stack.top().process_line_empty()
+ pass
elif line.lstrip()[0] == '#':
pass
else:
@@ -116,9 +116,6 @@
rest = match.group('rest1') or match.group('rest2')
getattr(self, "process_%s" % match.group('word'))(rest, match.group('ind'))
- def process_line_empty(self):
- pass
-
class _BlockContainerChoice(_BlockContainer):
def process_choice(self, text, ind):
_BlockChoice(self)
@@ -297,10 +294,6 @@
return self.recurse('process_line', text)
- def process_line_empty(self):
- pass
-
-
class _BlockIf(_BlockObject,
_BlockContainerChoice,
_BlockContainerCommon,
@@ -344,7 +337,7 @@
self.entry = FileSource(text)
parent.entry.append(self.entry)
-class _BlockType(_BlockObject):
+class _BlockType(_Element):
def __init__(self, parent, text, ind):
super(_BlockType, self).__init__(parent)
self.process_line(text)
More information about the Kernel-svn-changes
mailing list