Cleanup requirements.txt so we don't have to maintain separate copies for py2 and py3.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin 2015-07-02 22:35:20 -04:00
commit 2943ac6812
15 changed files with 44 additions and 45 deletions

View file

@ -97,5 +97,5 @@ def write_out_msg(stream, lines, msg_index, msg, status="done"):
def json_hash(obj):
dump = json.dumps(obj, sort_keys=True, separators=(',', ':'))
h = hashlib.sha256()
h.update(dump)
h.update(dump.encode('utf8'))
return h.hexdigest()