Skip to content
This repository has been archived by the owner on Mar 31, 2018. It is now read-only.

Commit

Permalink
pass a bytestring to sha512
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Sep 6, 2012
1 parent ab01625 commit ee9c07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carrier/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def process(self):
changes = [changes]

for name, version, timestamp, action in changes:
action_hash = hashlib.sha512(u":".join([unicode(x) for x in [name, version, timestamp, action]])).hexdigest()[:32]
action_hash = hashlib.sha512(u":".join([unicode(x) for x in [name, version, timestamp, action]]).encode("utf-8")).hexdigest()[:32]
action_key = "pypi:changelog:%s" % action_hash

logdata = {"action": action, "name": name, "version": version, "timestamp": timestamp}
Expand Down

0 comments on commit ee9c07d

Please sign in to comment.