From: Paolo Bonzini Date: Tue, 12 Mar 2019 16:48:48 +0000 (+0100) Subject: minikconf: fix parser typo X-Git-Tag: v4.0.0-rc2~11^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67163caebaff04d82f7080da902663780e29e74c;p=thirdparty%2Fqemu.git minikconf: fix parser typo The result of this typo would be that "select_foo" would be treated as a "select" keyword followed by "_foo". Nothing too bad, but easy to fix so let's be clean. Signed-off-by: Paolo Bonzini --- diff --git a/scripts/minikconf.py b/scripts/minikconf.py index 5421db0ed04..0ffc6c38da7 100644 --- a/scripts/minikconf.py +++ b/scripts/minikconf.py @@ -592,7 +592,7 @@ class KconfigParser: if not self.src.startswith(rest, self.cursor): return False length = len(rest) - if self.src[self.cursor + length].isalnum() or self.src[self.cursor + length] == '|': + if self.src[self.cursor + length].isalnum() or self.src[self.cursor + length] == '_': return False self.cursor += length return True