From 43e587c1f6706c41c3823f58c3d6d15baa94eb77 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Wed, 2 Mar 2011 20:54:22 +0000 Subject: [PATCH] Clarified the docstrings for int_to_bytearray() and bytearray_to_int(). llvm-svn: 126877 --- lldb/test/lldbutil.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lldb/test/lldbutil.py b/lldb/test/lldbutil.py index 6d132318a64c..af4b0194ea59 100644 --- a/lldb/test/lldbutil.py +++ b/lldb/test/lldbutil.py @@ -13,9 +13,8 @@ import StringIO def int_to_bytearray(val, bytesize): """Utility function to convert an integer into a bytearray. - It returns the bytearray in the little endian format. - It is easy to get the big endian representation, just do - ba.reverse() on the returned bytearray object. + 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 * @@ -39,9 +38,8 @@ def int_to_bytearray(val, bytesize): def bytearray_to_int(bytes, bytesize): """Utility function to convert a bytearray into an integer. - It interprets the bytearray in the little endian format. - It is easy to get the big endian representation, just do - ba.reverse() on the bytearray object before passing it in. + 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 *