Skip to content

Commit 399abdb

Browse files
committed
Fix
1 parent 2b06110 commit 399abdb

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
@@ -429,7 +429,7 @@ cdef class Parser:
429429
# Skip trailing whitespace
430430
while lngt > 0 and source[start+lngt-1] in b"\x00 ":
431431
lngt -= 1
432-
string_chunk[js, current_row] = source[start:start+lngt]
432+
string_chunk[js, current_row] = (&source[start])[:lngt]
433433
js += 1
434434

435435
self.current_row_on_page_index += 1

0 commit comments

Comments
 (0)