Minor import statement change.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@128558 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/lldbutil.py b/test/lldbutil.py
index 36bf156..0581366 100644
--- a/test/lldbutil.py
+++ b/test/lldbutil.py
@@ -83,7 +83,7 @@
It returns the bytearray in the little endian format. It is easy to get the
big endian format, just do ba.reverse() on the returned object.
"""
- from struct import *
+ import struct
if bytesize == 1:
return bytearray([val])
@@ -99,7 +99,7 @@
else:
return None
- packed = pack(fmt, val)
+ packed = struct.pack(fmt, val)
return bytearray(map(ord, packed))
def bytearray_to_int(bytes, bytesize):
@@ -108,7 +108,7 @@
It interprets the bytearray in the little endian format. For a big endian
bytearray, just do ba.reverse() on the object before passing it in.
"""
- from struct import *
+ import struct
if bytesize == 1:
return ba[0]
@@ -124,7 +124,7 @@
else:
return None
- unpacked = unpack(fmt, str(bytes))
+ unpacked = struct.unpack(fmt, str(bytes))
return unpacked[0]