diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-11-24 04:27:11 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-11-24 04:27:11 (GMT) |
commit | 062244a3b15356defac5d3eee969e330a9447781 (patch) | |
tree | 54b5f9cd27cc127cccf85452d43d0570eb041531 | |
parent | 6c4b5bd3668467a9a65b6476440ba27d871d3037 (diff) |
fix pretty print sysid hash
-rwxr-xr-x | tests/test_pretty_print.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py index 6377929..97e99d5 100755 --- a/tests/test_pretty_print.py +++ b/tests/test_pretty_print.py @@ -80,8 +80,10 @@ def read_sysinfo(filename): data = data.strip() + # create 4 letter hash and stick on end of sysid + nondate_data = re.sub("\n.*?ompile date.*?\n","",data) hexhash = hashlib.md5() - hexhash.update(data) + hexhash.update(nondate_data) hexhash = hexhash.hexdigest()[-4:].upper() hash = '' for c in hexhash: hash += chr(ord(c)+97-48) |