Skip to content

Commit c12f978

Browse files
authored
Remove Cython warnings (#57919)
Remove Cython warning
1 parent 495f808 commit c12f978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/util.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ cdef inline const char* get_c_string(str py_string) except NULL:
185185
return get_c_string_buf_and_size(py_string, NULL)
186186

187187

188-
cdef inline bytes string_encode_locale(str py_string) noexcept:
188+
cdef inline bytes string_encode_locale(str py_string):
189189
"""As opposed to PyUnicode_Encode, use current system locale to encode."""
190190
return PyUnicode_EncodeLocale(py_string, NULL)
191191

192192

193-
cdef inline object char_to_string_locale(const char* data) noexcept:
193+
cdef inline object char_to_string_locale(const char* data):
194194
"""As opposed to PyUnicode_FromString, use current system locale to decode."""
195195
return PyUnicode_DecodeLocale(data, NULL)

0 commit comments

Comments
 (0)