From 68a16864b62e57146e6642d8b7384b5280a460f6 Mon Sep 17 00:00:00 2001 From: David Garcia Quintas <dgq@google.com> Date: Thu, 14 Jan 2016 10:56:48 -0800 Subject: [PATCH] Fixed removal of trailing newline upon --fix --- tools/distrib/check_copyright.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/distrib/check_copyright.py b/tools/distrib/check_copyright.py index 5e948e2deeb..d6f2809e57f 100755 --- a/tools/distrib/check_copyright.py +++ b/tools/distrib/check_copyright.py @@ -104,7 +104,7 @@ RE_LICENSE = dict( def load(name): with open(name) as f: - return '\n'.join(line.rstrip() for line in f.read().splitlines()) + return f.read() def save(name, text): with open(name, 'w') as f: