[kernel-team] 27/86: lib/kconfigeditor/kconfig/menu/file.py: Support unquoted prompts.

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 2b2b7acad1dad4254d3f94ab2c85b574a0a72a73
Author: Bastian Blank <waldi at debian.org>
Date:   Thu Mar 13 11:24:29 2008 +0000

    lib/kconfigeditor/kconfig/menu/file.py: Support unquoted prompts.
    
    svn path=/people/waldi/utils/kconfigeditor2/; revision=10830
---
 utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py b/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py
index bffd931..2939842 100644
--- a/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py
+++ b/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py
@@ -133,7 +133,7 @@ $"""
     def process_line(self, text):
         match = self.split_re.match(text)
         if not match:
-            raise ParseException("No match")
+            raise ParseException("Can't find a command")
         rest = match.group('rest1') or match.group('rest2')
         getattr(self, "process_%s" % match.group('word'))(rest, match.group('ind'))
 
@@ -216,6 +216,8 @@ class _BlockConfigData(_BlockObject, _BlockContainerDepends):
         "(?P<text1>.*((?<=\\)".*)*)"
         |
         '(?P<text2>.*((?<=\\)".*)*)'
+        |
+        (?P<text3>\w+)
     )
     (
         \s*
@@ -233,7 +235,7 @@ $"""
         if text is not None:
             match = self._prompt_re.match(text)
             if match:
-                self.entry.prompt = match.group('text1') or match.group('text2')
+                self.entry.prompt = match.group('text1') or match.group('text2') or match.group('text3')
                 text = match.group('expression')
             else:
                 raise ParseException("Can't find a prompt")

-- 
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