Skip to content

Commit 5020dfd

Browse files
committed
Consume trailing space in round_trip (if requested)
1 parent 7b2c77c commit 5020dfd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/_libs/src/parser/tokenizer.c

+6
Original file line numberDiff line numberDiff line change
@@ -1904,6 +1904,12 @@ double round_trip(const char *p, char **q, char decimal, char sci, char tsep,
19041904

19051905
PyGILState_Release(gstate);
19061906
free(pc);
1907+
1908+
if (skip_trailing && q != NULL && *q != p) {
1909+
while (isspace_ascii(**q)) {
1910+
(*q)++;
1911+
}
1912+
}
19071913
return r;
19081914
}
19091915

0 commit comments

Comments
 (0)