mailgun / flanker

Python email address and Mime parsing library
http://www.mailgun.com
Apache License 2.0
1.63k stars 204 forks source link

AttributeError: module 'collections' has no attribute 'MutableMapping' #261

Open nabilragab opened 1 year ago

nabilragab commented 1 year ago

Could you update the flanker codebase for python3.10+ where has been reported before: https://github.com/mailgun/flanker/issues/260

Where collections.MutableMapping has been moved to collections.abc.MutableMapping

When I try to validate an email address using flanker.addresslib.address.validate_address , I'm getting AttributeError: module 'collections' has no attribute 'MutableMapping' in flanker/addresslib/drivers/redis_driver.py.

MutableMapping has to be imported from collections.abc. Please do the needful.

Thanks