Skip to content

Commit 6e0e82b

Browse files
authored
Fix
1 parent 29478a1 commit 6e0e82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/sas/sas.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ cdef class Parser:
430430
# Skip trailing whitespace
431431
while lngt > 0 and source[start+lngt-1] in b"\x00 ":
432432
lngt -= 1
433-
string_chunk[js, current_row] = source[start:start+lngt]
433+
string_chunk[js, current_row] = (&source[start])[:lngt]
434434
js += 1
435435

436436
self.current_row_on_page_index += 1

0 commit comments

Comments
 (0)