Skip to content

Commit 378cbfc

Browse files
committed
Fix multidict benchmark
1 parent 83aa066 commit 378cbfc

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

aiohttp/_multidict.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ cdef class _Base:
3434
def __cinit__(self):
3535
self._upstr = upstr
3636

37-
3837
def getall(self, key, default=_marker):
3938
"""
4039
Return a list of all values matching the key (may be an empty list)

benchmark/multidict.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010
"""
1111

1212
cython_multidict = """\
13-
from aiohttp.multidict import MutableMultiDict
14-
dct = MutableMultiDict()
13+
from aiohttp.multidict import MultiDict
14+
dct = MultiDict()
1515
"""
1616

1717
python_multidict = """\
18-
from aiohttp.multidict import _MutableMultiDict
19-
dct = _MutableMultiDict()
18+
from aiohttp.multidict import _MultiDict
19+
dct = _MultiDict()
2020
"""
2121

2222
cython_cimultidict = """\
23-
from aiohttp.multidict import CIMutableMultiDict, upstr
24-
dct = CIMutableMultiDict()
23+
from aiohttp.multidict import CIMultiDict, upstr
24+
dct = CIMultiDict()
2525
"""
2626

2727
python_cimultidict = """\
28-
from aiohttp.multidict import _CIMutableMultiDict, _upstr as upstr
29-
dct = _CIMutableMultiDict()
28+
from aiohttp.multidict import _CIMultiDict, _upstr as upstr
29+
dct = _CIMultiDict()
3030
"""
3131

3232
fill = """\

0 commit comments

Comments
 (0)