chore: use urlunparse instead of string replace#2221
Conversation
Use the `urlunparse()` function to reconstruct the URL without the query parameters.
|
@JohnVillalovos this uses a private interface, see my comment at #2219 (comment). |
It is documented in the official docs, which to me means it is supposed to be used. https://docs.python.org/3/library/urllib.parse.html
|
Codecov Report
@@ Coverage Diff @@
## main #2221 +/- ##
=======================================
Coverage 95.45% 95.45%
=======================================
Files 81 81
Lines 5368 5368
=======================================
Hits 5124 5124
Misses 244 244
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
My theory is that because the The
|
|
Ok, I will begrudgingly merge this 🐱 |
Use the
urlunparse()function to reconstruct the URL without thequery parameters.