Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing redundant Bucket.upload* methods. #1002

Merged
merged 1 commit into from
Jul 21, 2015

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Jul 21, 2015

Redundant since these are already defined on Blob.

@tseaver @jgeewax This doesn't have to be merged, just trying to adhere to PEP20 / import this:

There should be one-- and preferably only one --obvious way to do it.

Redundant since these are already defined on Blob.
@dhermes dhermes added the api: storage Issues related to the Cloud Storage API. label Jul 21, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 21, 2015
@@ -107,7 +107,8 @@ how to create a bucket.
blob = bucket.get_blob('/remote/path/to/file.txt')
print blob.download_as_string()
blob.upload_from_string('New contents!')
bucket.upload_file('/remote/path/storage.txt', '/local/path.txt')
blob2 = storage.Blob('/remote/path/storage.txt', bucket)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@tseaver
Copy link
Contributor

tseaver commented Jul 21, 2015

LGTM

dhermes added a commit that referenced this pull request Jul 21, 2015
Removing redundant Bucket.upload* methods.
@dhermes dhermes merged commit f634292 into googleapis:master Jul 21, 2015
@dhermes dhermes deleted the remove-redundant-storage-method branch July 21, 2015 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants