Commit 60df9239 authored by Russ Cox's avatar Russ Cox

codereview: discard \r characters (sigh)

R=r
https://golang.org/cl/157041
parent bae4f508
......@@ -1421,6 +1421,8 @@ def MySend(request_path, payload=None,
f = self.opener.open(req)
response = f.read()
f.close()
# Translate \r\n into \n, because Rietveld doesn't.
response = response.replace('\r\n', '\n')
return response
except urllib2.HTTPError, e:
if tries > 3:
......
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