Skip to content

Commit cd70070

Browse files
author
linesight
committed
add python311 support
1 parent 748f104 commit cd70070

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/common/cefpython_public_api.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
#include "../../build/build_cefpython/cefpython_py39_fixed.h"
5353
#elif PY_MINOR_VERSION == 10
5454
#include "../../build/build_cefpython/cefpython_py310_fixed.h"
55+
#elif PY_MINOR_VERSION == 11
56+
#include "../../build/build_cefpython/cefpython_py311_fixed.h"
5557
#endif // PY_MINOR_VERSION
5658
#endif // PY_MAJOR_VERSION
5759

src/request.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ cdef class PyRequest:
203203

204204
cpdef py_void SetHeaderMap(self, dict headerMap):
205205
assert len(headerMap) > 0, "headerMap param is empty"
206-
cpdef list headerMultimap = []
206+
cdef list headerMultimap = []
207207
cdef object key
208208
for key in headerMap:
209209
headerMultimap.append((str(key), str(headerMap[key])))

src/response.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ cdef class PyResponse:
8686

8787
cpdef py_void SetHeaderMap(self, dict headerMap):
8888
assert len(headerMap) > 0, "headerMap param is empty"
89-
cpdef list headerMultimap = []
89+
cdef list headerMultimap = []
9090
cdef object key
9191
for key in headerMap:
9292
headerMultimap.append((str(key), str(headerMap[key])))

tools/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Cython == 0.29.21
1+
Cython == 0.29.36
22
docopt >= 0.6.2
33
setuptools
44
wheel

0 commit comments

Comments
 (0)