sarugaku / mork

A project for installing packages across the virtualenv boundary.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

collections.abc import doesnt exist in python 2

techalchemy opened this issue · comments

Need to use collections.Set instead of collections.abc.Set

... maybe this time i will put this on the right project

OTOH collection.Set (other ABC imports too) is deprecated in recent Python versions. Under the best circumstances six should put this in a moves module, but alas. The best approach is probably providing a try-except-ImportError shim.

yeah I just added the move to Six no big deal

six.add_move(six.MovedAttribute("Set", "collections", "collections.abc"))
from six.moves import Set