[Lldb-commits] [lldb] r128558 - /lldb/trunk/test/lldbutil.py
Johnny Chen
johnny.chen at apple.com
Wed Mar 30 10:54:35 PDT 2011
Author: johnny
Date: Wed Mar 30 12:54:35 2011
New Revision: 128558
URL: http://llvm.org/viewvc/llvm-project?rev=128558&view=rev
Log:
Minor import statement change.
Modified:
lldb/trunk/test/lldbutil.py
Modified: lldb/trunk/test/lldbutil.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbutil.py?rev=128558&r1=128557&r2=128558&view=diff
==============================================================================
--- lldb/trunk/test/lldbutil.py (original)
+++ lldb/trunk/test/lldbutil.py Wed Mar 30 12:54:35 2011
@@ -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]
More information about the lldb-commits
mailing list