From 528b36ef96af1c5b856593eb57b911d45c12524f Mon Sep 17 00:00:00 2001 From: Rich Wareham Date: Fri, 17 Sep 2010 13:33:08 +0100 Subject: [PATCH] fix human readable output The key was output incorrectly by the himan readable output routine. --- generate_key.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate_key.py b/generate_key.py index f03d5c5..54cda17 100755 --- a/generate_key.py +++ b/generate_key.py @@ -214,7 +214,8 @@ def output_human_readable(ksv, key, is_sink): key_strs = map(lambda x: '%014x' % x, key) print('\n%s Key:' % ('Sink' if is_sink else 'Source')) - print(string.join(map(lambda x: string.join(x, ' '), zip(*[key_strs]*5)), '\n')) + for idx in range(0, 40, 5): + print(string.join(key_strs[idx:idx+4], ' ')) def output_json(ksv, key, is_sink): """Print a JSON version of the KSV and key.