Skip to content

Commit

Permalink
Fixed lint problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vazquez committed Feb 19, 2015
1 parent 95cefcb commit 59fff73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcloud/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def make_exception(response, content, use_json=True):
:returns: Exception specific to the error response.
"""
if six.PY3 and isinstance(content, bytes):
content = content.decode('utf-8') # pragma: NO COVER Py3K
content = content.decode('utf-8') # pragma: NO COVER Py3K

message = content
errors = ()
Expand Down
2 changes: 1 addition & 1 deletion gcloud/storage/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def api_request(self, method, path, query_params=None,
raise make_exception(response, content)

if six.PY3 and isinstance(content, bytes):
content = content.decode('utf-8') # pragma: NO COVER Py3K
content = content.decode('utf-8') # pragma: NO COVER Py3K

if content and expect_json:
content_type = response.get('content-type', '')
Expand Down

0 comments on commit 59fff73

Please sign in to comment.