Skip to content

Commit

Permalink
Some Py3 changes (suggested by Graham Mills)
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 27, 2013
1 parent 6fa3ebb commit 8094ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codepy/jit.py
Expand Up @@ -281,8 +281,8 @@ def calculate_hex_checksum():
import md5
checksum = md5.new()

checksum.update(source_string)
checksum.update(str(toolchain.abi_id()))
checksum.update(source_string.encode('utf-8'))
checksum.update(str(toolchain.abi_id()).encode('utf-8'))
return checksum.hexdigest()

def load_info(info_path):
Expand Down

0 comments on commit 8094ff4

Please sign in to comment.