From: Tom Zanussi Date: Mon, 6 Aug 2012 05:56:55 +0000 (-0500) Subject: yocto-bsp: use rstrip() for assignment lines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e26589eb1963956a68123ff6dcb4620dc40a1de0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git yocto-bsp: use rstrip() for assignment lines strip() isn't necessary and causes unintended formatting changes in the output; rstrip() remove the trailing newlines as intended while leaving indenting whitespace intact. (From meta-yocto rev: 0caa6cd8c094b531ee8e78154dbf5a8e6014d1fd) Signed-off-by: Tom Zanussi Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index 857e5a09c01..7a98f447c37 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py @@ -658,7 +658,7 @@ class SubstrateBase(object): """ Expand all tags in a line. """ - expanded_line = AssignmentLine(line.strip()) + expanded_line = AssignmentLine(line.rstrip()) while start != -1: end = line.find(CLOSE_TAG, start)