Skip to content

Commit 28d3215

Browse files
committed
fix deprecated collections.abc usage
1 parent cdf062d commit 28d3215

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

nvpair.pxi

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22
# cython: language_level=3, c_string_type=unicode, c_string_encoding=default
33

44
cimport nvpair
5-
import collections
5+
66
import numbers
77
import cython
88
from types cimport *
99
from libc.stdint cimport uintptr_t
1010
from libc.stdlib cimport malloc, free
1111

12-
try:
13-
from collections import Sequence
14-
except ImportError:
15-
# >= py3.10 moved everything into top-level "abc" module
16-
# https://docs.python.org/3.9/library/collections.html
17-
from collections.abc import Sequence
12+
from collections.abc import Sequence
1813

1914

2015
@cython.internal

0 commit comments

Comments
 (0)