rmax / scrapy-redis

Redis-based components for Scrapy.
http://scrapy-redis.readthedocs.io
MIT License
5.52k stars 1.59k forks source link

[IMPROVEMENT] Update collections import method before deprecated #211

Closed LuckyPigeon closed 2 years ago

LuckyPigeon commented 2 years ago

Description

from collections import xxx is about to be deprecated in python 3.10. We need to change all from collections import xxx to import collections.abc as abc, and modified the functions that depends on collections to abc.xxx

Reproduce the message

Enter following code

> pytest

Log

image

Tasks

Remember following the guide in CONTRIBUTING.rst to build your virtual environment and test before sending a PR.