From b486ea404fad349221086b85fe19633bb93d9874 Mon Sep 17 00:00:00 2001 From: Ted Mielczarek Date: Mon, 22 Sep 2008 07:04:36 -0400 Subject: [PATCH] allow values in DEFINES to contain equals signs. r=pike (no bug) --- config/Preprocessor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/Preprocessor.py b/config/Preprocessor.py index 402661ced0a0..c335101f50f6 100644 --- a/config/Preprocessor.py +++ b/config/Preprocessor.py @@ -174,8 +174,7 @@ class Preprocessor: for k,v in os.environ.iteritems(): self.context[k] = v def handleD(option, opt, value, parser): - vals = value.split('=') - assert len(vals) < 3 + vals = value.split('=', 1) if len(vals) == 1: vals.append(1) elif unescapeDefines and escapedValue.match(vals[1]):