mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #637] Urllib3 method_whitelist deprecated #379
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ReneNulschDE on GitHub (Feb 6, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/637
Describe the bug
In Urllib3 version >= 1.26.0
Retry(method_whitelist=...)is deprecated. Your component is using method_whitelist hereYour code
None. Your lib is used in the Home-Assistant Spotify component.
Expected behavior
No deprecation warnings. Check if a replacement with
allowed_methodsis possible. Tested this with a local code change and works good.Output
/home/rene/repos/core/venv/lib/python3.8/site-packages/urllib3/util/retry.py:252: DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead
Environment:
Additional context
@stephanebruckert commented on GitHub (Mar 4, 2021):
Released in 2.17.1