Skip to content

Commit 0937a43

Browse files
committed
added 'except NULL' for get_c_string_buf_and_size in util.pxd(bug without)
1 parent b64de08 commit 0937a43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/util.pxd

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ cdef inline bint is_nan(object val):
258258
return is_complex_object(val) and val != val
259259

260260

261-
cdef inline const char* get_c_string_buf_and_size(object py_string,
262-
Py_ssize_t *length):
261+
cdef inline const char* get_c_string_buf_and_size(
262+
object py_string, Py_ssize_t *length) except NULL:
263263
"""
264264
Extract internal char* buffer of unicode or bytes object `py_string` with
265265
getting length of this internal buffer saved in `length`.

0 commit comments

Comments
 (0)