GeezerVison is showing github.com — Forward connection w/o interception to 'ACL.save'. · googleapis/google-cloud-python@2478c71
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: gcloud/storage/blob.py -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -520,8 +520,6 @@ def make_public(self, connection=None): |
520 | 520 | :param connection: Optional. The connection to use when sending |
521 | 521 | requests. If not provided, falls back to default. |
522 | 522 | """ |
523 | | - if connection is None: |
524 | | - connection = self.connection |
525 | 523 | self.acl.all().grant_read() |
526 | 524 | self.acl.save(connection=connection) |
527 | 525 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: gcloud/storage/test_blob.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -729,7 +729,7 @@ def test_upload_from_string_w_text(self): |
729 | 729 | self.assertEqual(headers['Content-Type'], 'text/plain') |
730 | 730 | self.assertEqual(rq[0]['body'], ENCODED) |
731 | 731 |
|
732 | | - def test_make_public(self): |
| 732 | + def test_make_public_w_implicit_ocnnection(self): |
733 | 733 | from gcloud.storage.acl import _ACLEntity |
734 | 734 | from gcloud.storage._testing import _monkey_defaults |
735 | 735 | BLOB_NAME = 'blob-name' |
|