nixpkgs/pkgs/development/python-modules/selectors2/mapping-import.patch
Martin Weinelt 1c701dd368
python3Packages.selectors2: fix mapping import
The library is otherwise unmaintained and should be removed once
something larger comes up.
2022-06-06 11:46:28 -07:00

15 lines
389 B
Diff

diff --git a/selectors2.py b/selectors2.py
index 1625a30..c4a1231 100644
--- a/selectors2.py
+++ b/selectors2.py
@@ -22,7 +22,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-from collections import namedtuple, Mapping
+from collections import namedtuple
+from collections.abc import Mapping
import errno
import math
import platform