[oe-commits] Andreas Oberritter : oe-stylize: remove trailing newline when printing unknown variable/routine
git version control
git at git.openembedded.org
Fri Dec 10 15:35:10 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: bbd15964c3af5e06c24aa040dc58ebeca2872d93
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bbd15964c3af5e06c24aa040dc58ebeca2872d93
Author: Andreas Oberritter <obi at opendreambox.org>
Date: Fri Dec 10 01:05:02 2010 +0000
oe-stylize: remove trailing newline when printing unknown variable/routine
Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
---
contrib/oe-stylize.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/oe-stylize.py b/contrib/oe-stylize.py
index 0a1346c..3c383bc 100755
--- a/contrib/oe-stylize.py
+++ b/contrib/oe-stylize.py
@@ -379,7 +379,7 @@ if __name__ == "__main__":
line = follow_rule(5, line)
if var == "":
if not in_routine:
- print "## Warning: unknown variable/routine \"%s\"" % originalLine
+ print "## Warning: unknown variable/routine \"%s\"" % originalLine.rstrip('\n')
var = 'others'
for c in commentBloc: seen_vars[var].append(c)
commentBloc = []
More information about the Openembedded-commits
mailing list