Add compat imports for collections.abc.

Review Request #11881 — Created Nov. 23, 2021 and submitted

Information

Djblets
master

Reviewers

Python 3.10 removed a bunch of deprecated aliases for items in the
collections.abc module. Unfortunately for us, both Django 1.11 and nose
rely on these imports. This change adds a compat module that will
recreate the aliases we need.

Ran unit tests with Python 3.10.

Summary ID
Add compat imports for collections.abc.
Python 3.10 removed a bunch of deprecated aliases for items in the collections.abc module. Unfortunately for us, both Django 1.11 and nose rely on these imports. This change adds a compat module that will recreate the aliases we need. Testing Done: Ran unit tests with Python 3.10.
72b66d19b45cb754686c400e3b49fdbd4647705a
Description From Last Updated

This needs to land on release-2.x.

chipx86chipx86

Can we duplicate the information here, where it's more likely we'll see it regularly?

chipx86chipx86

F401 'djblets.util.compat.python.collections' imported but unused

reviewbotreviewbot

Can you add a docstring to this function, with a Version Added?

chipx86chipx86

F401 'collections.Iterator' imported but unused

reviewbotreviewbot

F401 'djblets.util.compat.python.collections' imported but unused

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
  1. 
      
  2. This needs to land on release-2.x.

  3. djblets/__init__.py (Diff revision 1)
     
     

    Can we duplicate the information here, where it's more likely we'll see it regularly?

  4. Can you add a docstring to this function, with a Version Added?

  5. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.x (5edd3ef)
Loading...