From 692a4e327a08eb662f6ff51505113458c166f27b Mon Sep 17 00:00:00 2001 From: "rfevang@chromium.org" Date: Wed, 30 Jan 2013 09:49:40 +0000 Subject: Fix PRESUBMIT newline issue. Accept any newline style when checking for differences between files and the expected output from link_converter.py. BUG=172708 Review URL: https://chromiumcodereview.appspot.com/12087072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179577 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/extensions/PRESUBMIT.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/common/extensions/PRESUBMIT.py') diff --git a/chrome/common/extensions/PRESUBMIT.py b/chrome/common/extensions/PRESUBMIT.py index d3d493e..77333bd 100644 --- a/chrome/common/extensions/PRESUBMIT.py +++ b/chrome/common/extensions/PRESUBMIT.py @@ -126,7 +126,8 @@ def _CheckLinks(input_api, output_api, results): absolute_path]) output = input_api.subprocess.check_output( args, - cwd=input_api.PresubmitLocalPath()) + cwd=input_api.PresubmitLocalPath(), + universal_newlines=True) if output != contents: changes = '' for i, (line1, line2) in enumerate( -- cgit v1.1