-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add tracking signals for getting request/response bodies. #2767
Merged
asvetlov
merged 23 commits into
aio-libs:master
from
kowalski:feature/add-signals-for-reqres-chunks
Mar 1, 2018
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
158cdbe
Add tracking signals for getting request/response bodies.
kowalski 329f89a
Revert automatic pep8 fix.
kowalski 24e1db9
Remove internal usage of Signal in favor of simple callbacks.
kowalski 1be8ecb
Document new signals
kowalski f19e7c0
Move callback to a private method.
kowalski 45d6332
Make check more idiomatic
kowalski e1e82e5
Reorder classes in __all__
kowalski 6e3819f
Update request lifecycle diagram to include new signals
kowalski 89dcb0f
Don't use mutable defaults for traces. Make it private in ClientRequest
kowalski 8288c26
Further updates to tracing documentation
kowalski 9265d0b
Merge branch 'master' into feature/add-signals-for-reqres-chunks
asvetlov 202cb86
Polish docs
kowalski d687b92
Merge branch 'feature/add-signals-for-reqres-chunks' of github.com:ko…
kowalski d30d50b
Merge branch 'master' into feature/add-signals-for-reqres-chunks
asvetlov 57e3060
Revert ignoring pep8 rules
kowalski f944a17
Subtle optimisation - don't create list instance if not needed
kowalski 6a93b16
Remove assert statement
kowalski 9f8d389
Add test case ensuring StreamWriter calls callback
kowalski 4fbc080
Add test checking that response.read() trigger trace callback
kowalski 1034104
Merge branch 'feature/add-signals-for-reqres-chunks' of github.com:ko…
kowalski dcd7366
Merge branch 'master' into feature/add-signals-for-reqres-chunks
asvetlov 7badf72
Add CHANGES record
kowalski d7c995a
Merge branch 'feature/add-signals-for-reqres-chunks' of github.com:ko…
kowalski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert automatic pep8 fix.
Mark pep8 rules E225 and E226 as ignored, to prevent automatic changes in code formating.
- Loading branch information
commit 329f89aaf62af5db6dbfdf9327419d64a5176817
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[pep8] | ||
max-line-length=79 | ||
ignore=E225,E226 | ||
|
||
[easy_install] | ||
zip_ok = false | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in doubt that we should ignore these. Any reasons why to disable them globally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I'm not in place to judge this. I did it to be able to save a file which has
64*1000
literal without spaces around*
. Otherwise autopep just fixes it for me.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That autopep suggestion looks correct. You may also write
64000
instead without any loss in readability.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm with you. @asvetlov specifically asked me to keep it as was.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me the strange thing is successful passing flake8 checks without the
ignore
setting.I'm totally fine with 64000 or even better 0x10000. Pretty sure it should be 64KiB instead of 64kB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please drop the change. Feel free to replace the limit with
0x10000
if needed -- I'm +-0 for it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done