Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: gcl.py

Issue 15018003: Reinstate automatic line-end cleaning removed in r194182. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcl.py
===================================================================
--- gcl.py (revision 198536)
+++ gcl.py (working copy)
@@ -379,12 +379,12 @@
def GetIssueDescription(self):
"""Returns the issue description from Rietveld."""
- return self.SendToRietveld('/%d/description' % self.issue)
+ return self.SendToRietveld('/%d/description' % self.issue).replace('\r\n',
+ '\n')
def UpdateDescriptionFromIssue(self):
"""Updates self.description with the issue description from Rietveld."""
- self._desc = git_cl.ChangeDescription(
- self.SendToRietveld('/%d/description' % self.issue))
+ self._desc = git_cl.ChangeDescription(self.GetIssueDescription())
def GetApprovingReviewers(self):
"""Returns the issue reviewers list from Rietveld."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698