From patchwork Thu Dec 9 17:05:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: oe-stylize: remove trailing newline when printing unknown variable/routine Date: Thu, 09 Dec 2010 17:05:02 -0000 From: Andreas Oberritter X-Patchwork-Id: 44 Message-Id: <1291914302-25298-1-git-send-email-obi@opendreambox.org> To: openembedded-devel@lists.openembedded.org Signed-off-by: Andreas Oberritter --- 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 = []