소스 검색

Merge pull request #4727 from dgquintas/copyright_fix_newline

Fixed removal of trailing newline upon --fix
Michael Lumish 10 년 전
부모
커밋
2e18d43930
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/distrib/check_copyright.py

+ 1 - 1
tools/distrib/check_copyright.py

@@ -104,7 +104,7 @@ RE_LICENSE = dict(
 
 
 def load(name):
 def load(name):
   with open(name) as f:
   with open(name) as f:
-    return '\n'.join(line.rstrip() for line in f.read().splitlines())
+    return f.read()
 
 
 def save(name, text):
 def save(name, text):
   with open(name, 'w') as f:
   with open(name, 'w') as f: