From 68638441ddfd9310db051764de432370856906d1 Mon Sep 17 00:00:00 2001 From: themylogin Date: Thu, 9 May 2024 18:16:10 +0200 Subject: [PATCH] Fix `DeprecationWarning` (cherry picked from commit b8b0ceec436fe38a160a507680f8d4761ad7ff4d) --- nvpair.pxi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nvpair.pxi b/nvpair.pxi index 817cafa..7cf4586 100644 --- a/nvpair.pxi +++ b/nvpair.pxi @@ -9,12 +9,7 @@ from types cimport * from libc.stdint cimport uintptr_t from libc.stdlib cimport malloc, free -try: - from collections import Sequence -except ImportError: - # >= py3.10 moved everything into top-level "abc" module - # https://docs.python.org/3.9/library/collections.html - from collections.abc import Sequence +from collections.abc import Sequence @cython.internal