8000 Merge pull request #201 from tseaver/141-connection.get_bucket-spurio… · googleapis/google-cloud-python@2c7b505 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c7b505

Browse files
committed
Merge pull request #201 from tseaver/141-connection.get_bucket-spurious_args_kwargs
Fix #141: remove spurious *args / **kwargs from API methods.
2 parents e625ddb + b848468 commit 2c7b505

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gcloud/storage/connection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def api_request(self, method, path, query_params=None,
238238

239239
return content
240240

241-
def get_all_buckets(self, *args, **kwargs):
241+
def get_all_buckets(self):
242242
"""Get all buckets in the project.
243243
244244
This will not populate the list of keys available
@@ -261,7 +261,7 @@ def get_all_buckets(self, *args, **kwargs):
261261

262262
return list(self)
263263

264-
def get_bucket(self, bucket_name, *args, **kwargs):
264+
def get_bucket(self, bucket_name):
265265
"""Get a bucket by name.
266266
267267
If the bucket isn't found,
@@ -320,7 +320,7 @@ def lookup(self, bucket_name):
320320
except exceptions.NotFoundError:
321321
return None
322322

323-
def create_bucket(self, bucket, *args, **kwargs):
323+
def create_bucket(self, bucket):
324324
"""Create a new bucket.
325325
326326
For example::
@@ -343,7 +343,7 @@ def create_bucket(self, bucket, *args, **kwargs):
343343
data={'name': bucket.name})
344344
return Bucket.from_dict(response, connection=self)
345345

346-
def delete_bucket(self, bucket, force=False, *args, **kwargs):
346+
def delete_bucket(self, bucket, force=False):
347347
"""Delete a bucket.
348348
349349
You can use this method to delete a bucket by name,

0 commit comments

Comments
 (0)
0