From 3d3ef36e977b5f5a4153b8df6447f3f73e4726e3 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 4 May 2015 16:35:40 +0300 Subject: modstruct: Rename module to "ustruct", to allow full Python-level impl. --- tests/basics/struct1.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/basics/struct1.py') diff --git a/tests/basics/struct1.py b/tests/basics/struct1.py index c473fc0b0c..87e2f07026 100644 --- a/tests/basics/struct1.py +++ b/tests/basics/struct1.py @@ -1,4 +1,7 @@ -import struct +try: + import ustruct as struct +except: + import struct print(struct.calcsize("bI")) -- cgit v1.2.3