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

Unified Diff: third_party/upload.py

Issue 10908063: Fix apply_issue.py to work on python 2.6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 3 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
« rietveld.py ('K') | « rietveld.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/upload.py
diff --git a/third_party/upload.py b/third_party/upload.py
index 581ab4d8c45b04d59327b73c3d9f04d14732b74e..abd17c742f7bccf4bd7e7ab2cd1c8c2d84381459 100755
--- a/third_party/upload.py
+++ b/third_party/upload.py
@@ -165,8 +165,13 @@ class ClientLoginError(urllib2.HTTPError):
def __init__(self, url, code, msg, headers, args):
urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
self.args = args
+ self._reason = args["Error"]
self.info = args.get("Info", None)
+ @property
+ def reason(self):
+ return self._reason
M-A Ruel 2012/09/03 17:34:25 Taken from patchset 3 on https://codereview.appspo
+
class AbstractRpcServer(object):
"""Provides a common interface for a simple RPC server."""
« rietveld.py ('K') | « rietveld.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698