Skip to content

Commit 949fa5e

Browse files
committed
Use chained comparison
1 parent fbf93da commit 949fa5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ cdef inline int64_t parse_iso_format_string(str ts) except? -1:
604604

605605
for c in ts:
606606
# number (ascii codes)
607-
if ord(c) >= 48 and ord(c) <= 57:
607+
if 48 <= ord(c) <= 57:
608608

609609
have_value = 1
610610
if have_dot:

0 commit comments

Comments
 (0)