django-countries icon indicating copy to clipboard operation
django-countries copied to clipboard

Fix importlib.metadata deprecation warning

Open browniebroke opened this issue 2 years ago • 2 comments

Warning:

  django_countries/fields.py:21
    /home/runner/work/django-countries/django-countries/django_countries/fields.py:21: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
      _entry_points = importlib.metadata.entry_points().get(

Fix #439

Note

I've used sys.version_info and changed the pre-existing check for version <3.8 to use the same approach. This way, pyupgrade should fix it automatically when the project drop the older Python versions.

browniebroke avatar May 04 '23 11:05 browniebroke

Fixes https://github.com/SmileyChris/django-countries/issues/439 .

zyv avatar Nov 10 '23 16:11 zyv

Fixes #439 .

Thanks, added to the description (to auto-close it)

browniebroke avatar Nov 10 '23 16:11 browniebroke

Fixed

SmileyChris avatar Mar 27 '24 04:03 SmileyChris