Skip to content

Commit

Permalink
Forward connection w/o interception to 'ACL.save'.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed May 6, 2015
1 parent 6dc5c56 commit ad0557d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions gcloud/storage/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,6 @@ def make_public(self, connection=None):
:param connection: Optional. The connection to use when sending
requests. If not provided, falls back to default.
"""
if connection is None:
connection = self.connection
self.acl.all().grant_read()
self.acl.save(connection=connection)

Expand Down
2 changes: 1 addition & 1 deletion gcloud/storage/test_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def test_upload_from_string_w_text(self):
self.assertEqual(headers['Content-Type'], 'text/plain')
self.assertEqual(rq[0]['body'], ENCODED)

def test_make_public(self):
def test_make_public_w_implicit_ocnnection(self):
from gcloud.storage.acl import _ACLEntity
from gcloud.storage._testing import _monkey_defaults
BLOB_NAME = 'blob-name'
Expand Down

0 comments on commit ad0557d

Please sign in to comment.