1
0
mirror of https://git.yoctoproject.org/poky synced 2026-04-20 11:28:58 +00:00

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 <tom.zanussi@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tom Zanussi
2012-08-06 00:56:55 -05:00
committed by Richard Purdie
parent f32909a2c2
commit e26589eb19

View File

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