-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Streaming: strip unused features #1209
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
Streaming: strip unused features #1209
Conversation
Ping me when this is rebased after the other commits get merged. |
Just want to double check that 11 commits is intended after the rebase and we didn't confuse |
This is the correct set of commits: I can squash some down, if you think it will help review better. |
No more commits is almost certainly a good thing (easier to review). |
@@ -2,6 +2,10 @@ | |||
"""Small helper class to provide a small slice of a stream. | |||
|
|||
This class reads ahead to detect if we are at the end of the stream. | |||
|
|||
:mod:`gcloud._apidools.transfer` uses: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Unfortunately GitHub thinks there are too many changes to There are a couple places where you dropped |
Also
seems like it could be done with
What am I missing? |
- :class:`Upload` | ||
- :const:`RESUMABLE_UPLOAD` | ||
|
||
:mod:`gcloud.storage.test_blob` patches: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Yay for "Give 'streaming.util' functions PEP8 names."! |
|
||
|
||
def Typecheck(arg, arg_type, msg=None): | ||
def type_check(arg, arg_type, msg=None): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Rut-roh, |
use_chunks: (bool, default: True) If False, ignore self.chunksize | ||
and stream this download in a single request. | ||
|
||
Returns: | ||
None. Streams bytes into self.stream. | ||
""" | ||
self.EnsureInitialized() | ||
self._ensure_initialized() | ||
while True: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Other than getting at the code GitHub won't show me, I've reviewed them all and made my comments. |
In that same commit, |
Originally, the |
Ha. OK |
Seems like adding |
(I think) to review the bigger diff: $ git remote add tseaver https://github.com/tseaver/gcloud-python
$ git fetch --all tseaver
$ git diff master..tseaver/streaming-strip_unused_features gcloud/streaming/test_transfer.py |
Rebased to fix conflict on |
OK the |
Do we have everything else squared away? |
I think so. |
OK. LGTM |
Streaming: strip unused features
Uses #1208 as a base.