Skip to content

Commit e5bb729

Browse files
committed
Respect byteorder in StataReader
Partially fix pandas-dev#11282 for s390x
1 parent fe201a2 commit e5bb729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/stata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ def _read_strls(self):
13491349
buf = buf[0:2] + buf[4:10]
13501350
else:
13511351
buf = buf[0:2] + buf[6:]
1352-
v_o = struct.unpack('Q', buf)[0]
1352+
v_o = struct.unpack(self.byteorder + 'Q', buf)[0]
13531353
typ = struct.unpack('B', self.path_or_buf.read(1))[0]
13541354
length = struct.unpack(self.byteorder + 'I',
13551355
self.path_or_buf.read(4))[0]

0 commit comments

Comments
 (0)