Skip to content

Commit 7074b96

Browse files
committed
Fix Cython compilation issues
1 parent 379cfc8 commit 7074b96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/_libs/tslibs/parsing.pyx

+3-3
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ cpdef bint _does_string_look_like_datetime(object date_string):
218218
return False
219219
if length >= 1:
220220
first = buf[0]
221-
if first == '0':
221+
if first == b'0':
222222
return True
223-
elif length == 1 and date_string in _not_datelike_strings:
223+
elif date_string in _not_datelike_strings:
224224
return False
225225
else:
226-
converted_date = xstrtod(buf, &endptr, '.', 'e', '\0', 1)
226+
converted_date = xstrtod(buf, &endptr, b'.', b'e', b'\0', 1)
227227
if errno == 0 and endptr == buf + length:
228228
return converted_date >= 1000
229229

0 commit comments

Comments
 (0)