forked from pool/python-dbfread
Markéta Machová
36658265a5
little endian. Created pull request at gh#olemb/dbfread#71. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbfread?expand=0&rev=12
14 lines
493 B
Diff
14 lines
493 B
Diff
Index: dbfread-2.0.7/dbfread/field_parser.py
|
|
===================================================================
|
|
--- dbfread-2.0.7.orig/dbfread/field_parser.py
|
|
+++ dbfread-2.0.7/dbfread/field_parser.py
|
|
@@ -175,7 +175,7 @@ class FieldParser:
|
|
|
|
def parseO(self, field, data):
|
|
"""Parse long field (O) and return float."""
|
|
- return struct.unpack('d', data)[0]
|
|
+ return struct.unpack('<d', data)[0]
|
|
|
|
def parseT(self, field, data):
|
|
"""Parse time field (T)
|