Commit 277003e2 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix a presubmit.py breakage on python 2.4

Review URL: http://codereview.chromium.org/100220

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15044 0039d316-1c4b-4281-b951-d872f2087c98
parent d971f7f5
......@@ -630,7 +630,7 @@ def DoPresubmitChecks(change_info,
if verbose:
print "Running %s" % filename
# Accept CRLF presubmit script.
presubmit_script = gcl.ReadFile(filename, 'Ur')
presubmit_script = gcl.ReadFile(filename, 'rU')
results += executer.ExecPresubmitScript(presubmit_script, filename)
errors = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment