From 6582d64d01c448be4f575f964c549e1ebffe0db0 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 10 Apr 2014 22:19:32 +0300 Subject: modstruct: Refactor to support both LE and BE packed structs. --- tests/basics/struct1.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/basics/struct1.py b/tests/basics/struct1.py index 6feaca384..db0d823f6 100644 --- a/tests/basics/struct1.py +++ b/tests/basics/struct1.py @@ -1,3 +1,5 @@ import struct print(struct.calcsize("bI")) +print(struct.unpack(">bI", b"\x80\0\0\x01\0")) -- cgit v1.2.3