spotipy-dev / spotipy

A light weight Python library for the Spotify Web API
http://spotipy.readthedocs.org
MIT License
4.98k stars 954 forks source link

Urllib3 method_whitelist deprecated #637

Closed ReneNulschDE closed 3 years ago

ReneNulschDE commented 3 years ago

Describe the bug In Urllib3 version >= 1.26.0 Retry(method_whitelist=...) is deprecated. Your component is using method_whitelist here

Your code None. Your lib is used in the Home-Assistant Spotify component.

Expected behavior No deprecation warnings. Check if a replacement with allowed_methods is 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 3 years ago

Released in 2.17.1