Skip to content

Commit

Permalink
Fix python 3.10 support in vendored in cgroupspy
Browse files Browse the repository at this point in the history
The cgrouppspy is not Python 3.10 compliant due to Iterable
being imported directly from collections.

This is captured in cloudsigma/cgroupspy#13

We fix it in our vendored-in version of cgroupspy until
hopefully new version of it is released.

This is part of the effort needed to implement Python 3.10
compatibility: apache#22050
  • Loading branch information
potiuk committed Mar 20, 2022
1 parent 172df9e commit 0c7507b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/_vendor/cgroupspy/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
from collections import Iterable
from collections.abc import Iterable
from airflow._vendor.cgroupspy.contenttypes import BaseContentType


Expand Down

0 comments on commit 0c7507b

Please sign in to comment.