From 43397004915912c47144775eccdb9edab4ef6578 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Tue, 21 Apr 2015 02:34:42 +0000 Subject: [PATCH] =?UTF-8?q?fix=20bug=20that=20caused=20blank=20line=20aval?= =?UTF-8?q?anche=20(extra=20=E2=80=98\n=E2=80=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 66efeb12d..68ff2e596 100755 --- a/configure +++ b/configure @@ -210,9 +210,10 @@ output = [] try: with open(configFile,'r') as f: for line in f: + line = line.strip() items = re.split('[= ]',line) - if (not line.strip() or items[0].startswith('#')): + if (not line or items[0].startswith('#')): pass if items[0] == 'DAMASK_BIN': line = '%s=%s'%(items[0],options.prefix)