Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Mitaka
python-pandas
0001_respect_byteorder_in_statareader.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001_respect_byteorder_in_statareader.patch of Package python-pandas
From e5bb7292138943f8e3c5f52276f30739d900e877 Mon Sep 17 00:00:00 2001 From: Alberto Planas <aplanas@gmail.com> Date: Tue, 9 Feb 2016 15:06:00 +0100 Subject: [PATCH] Respect byteorder in StataReader Partially fix #11282 for s390x --- pandas/io/stata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/stata.py b/pandas/io/stata.py index a878829..e5051ae 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -1356,7 +1356,7 @@ buf = buf[0:2] + buf[4:10] else: buf = buf[0:2] + buf[6:] - v_o = struct.unpack('Q', buf)[0] + v_o = struct.unpack(self.byteorder + 'Q', buf)[0] typ = struct.unpack('B', self.path_or_buf.read(1))[0] length = struct.unpack(self.byteorder + 'I', self.path_or_buf.read(4))[0]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor