commit | c516fa09de8bb66254b21ba3ad3341a8ccccb8e9 | [log] [tgz] |
---|---|---|
author | Dan Talayco <dan.talayco@bigswitch.com> | Thu Apr 12 22:28:43 2012 -0700 |
committer | Dan Talayco <dan.talayco@bigswitch.com> | Thu Apr 12 22:28:43 2012 -0700 |
tree | eff166d754365c09f98639b02b7ac847c91693e8 | |
parent | f6b9483805381703dff8281b500bf2dd8718af72 [diff] |
Start hexdump on newline
diff --git a/tests/testutils.py b/tests/testutils.py index 84254cb..68ee343 100644 --- a/tests/testutils.py +++ b/tests/testutils.py
@@ -838,7 +838,7 @@ @param length The number of bytes shown in each line @returns A string showing the hex dump """ - result = [] + result = ["\n"] for i in xrange(0, len(src), length): chars = src[i:i+length] hex = ' '.join(["%02x" % ord(x) for x in chars])