Skip to content

Commit bbca959

Browse files
Update dicttoolz.pyx
1 parent 00f7928 commit bbca959

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cytoolz/dicttoolz.pyx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ from cpython.ref cimport PyObject, Py_DECREF, Py_INCREF, Py_XDECREF
88
# Locally defined bindings that differ from `cython.cpython` bindings
99
from cytoolz.cpython cimport PyDict_Next_Compat, PtrIter_Next
1010

11-
from copy import copy
12-
from collections.abc import Mapping
11+
from collections import abc
12+
13+
14+
# cdef aliases to eliminate global lookups
15+
16+
cdef object Mapping = abc.Mapping
17+
del abc
1318

1419

1520
__all__ = ['merge', 'merge_with', 'valmap', 'keymap', 'itemmap', 'valfilter',

0 commit comments

Comments
 (0)