[yocto] [PATCH 08/14] yocto-bsp: use rstrip() for assignment lines
tom.zanussi at intel.com
tom.zanussi at intel.com
Thu Aug 9 14:00:58 PDT 2012
From: Tom Zanussi <tom.zanussi at intel.com>
strip() isn't necessary and causes unintended formatting changes in
the output; rstrip() remove the trailing newlines as intended while
leaving indenting whitespace intact.
Signed-off-by: Tom Zanussi <tom.zanussi at intel.com>
---
scripts/lib/bsp/engine.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py
index 756b882..af90e91 100644
--- a/scripts/lib/bsp/engine.py
+++ b/scripts/lib/bsp/engine.py
@@ -668,7 +668,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)
--
1.7.4.1
More information about the yocto
mailing list