Chromium Code Reviews| 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.""" |