Skip to content

Conversation

@danigm
Copy link
Contributor

@danigm danigm commented Apr 26, 2023

This patch pass "{}" when params is "None" to the url.update_query to avoid setting the url params to None.

Related to this change in yarl:
aio-libs/yarl@dd86b34

Fix #7259

@danigm danigm requested a review from asvetlov as a code owner April 26, 2023 07:29
@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #7260 (cf8ff3f) into master (ecd9c72) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #7260   +/-   ##
=======================================
  Coverage   97.31%   97.31%           
=======================================
  Files         107      107           
  Lines       31484    31485    +1     
  Branches     3937     3937           
=======================================
+ Hits        30639    30640    +1     
  Misses        641      641           
  Partials      204      204           
Flag Coverage Δ
CI-GHA 97.22% <100.00%> (+<0.01%) ⬆️
OS-Linux 96.88% <100.00%> (+<0.01%) ⬆️
OS-Windows 95.30% <ø> (ø)
OS-macOS 96.46% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 96.98% <100.00%> (+<0.01%) ⬆️
Py-3.11.0 96.41% <100.00%> (+<0.01%) ⬆️
Py-3.7.16 96.70% <100.00%> (+<0.01%) ⬆️
Py-3.7.9 95.17% <ø> (ø)
Py-3.8.10 95.09% <ø> (ø)
Py-3.8.16 96.61% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 95.08% <ø> (ø)
Py-3.9.16 96.63% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.11 94.12% <100.00%> (-0.02%) ⬇️
VM-macos 96.46% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 96.88% <100.00%> (+<0.01%) ⬆️
VM-windows 95.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiohttp/client.py 94.86% <100.00%> (+0.01%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

This patch pass "{}" when params is "None" to the url.update_query to
avoid setting the url params to None.

Related to this change in yarl:
aio-libs/yarl@dd86b34

Fix aio-libs#7259
@Dreamsorcerer Dreamsorcerer requested a review from webknjaz as a code owner May 2, 2023 18:41
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label May 2, 2023
@Dreamsorcerer Dreamsorcerer merged commit 2be9318 into aio-libs:master May 2, 2023
@patchback
Copy link
Contributor

patchback bot commented May 2, 2023

Backport to 3.9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.9/2be9318dc95a26940e9095673ebcbbf77dfd087b/pr-7260

Backported as #7271

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request May 2, 2023
This patch pass "{}" when params is "None" to the url.update_query to
avoid setting the url params to None.

Related to this change in yarl:

aio-libs/yarl@dd86b34

Fix #7259

---------

Co-authored-by: Sam Bull <[email protected]>
(cherry picked from commit 2be9318)
Dreamsorcerer pushed a commit that referenced this pull request May 2, 2023
…ith latest yarl (#7271)

**This is a backport of PR #7260 as merged into master
(2be9318).**

This patch pass "{}" when params is "None" to the url.update_query to
avoid setting the url params to None.

Related to this change in yarl:

aio-libs/yarl@dd86b34

Fix #7259

Co-authored-by: danigm <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracing method "on_request_start" does not receive full URL

2 participants