Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated #49

Merged
merged 1 commit into from
May 3, 2020

Conversation

RKrahl
Copy link
Owner

@RKrahl RKrahl commented May 3, 2020

Python 3.7 emits the following warning: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working. This concerns:

  • from collections import Mapping in photo/geo.py
  • from collections import MutableSequence in photo/index.py
  • from collections import MutableSequence in photo/listtools.py

Change the import to from collections.abc import …. Furthermore, remove a spurious import collections in photo/idxfilter.py.

@RKrahl RKrahl merged commit 02a5e55 into develop May 3, 2020
@RKrahl RKrahl deleted the collections branch May 3, 2020 19:03
@RKrahl RKrahl added the compatibility Issues about compatibility with libraries or other packages label May 3, 2020
@RKrahl RKrahl added this to the 0.10 milestone May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Issues about compatibility with libraries or other packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant