Get Python samples running on Python 3

This commit is contained in:
Andrew Dunham
2016-07-29 00:28:43 -07:00
parent 608cb1d943
commit c87a487fec
7 changed files with 10 additions and 10 deletions

View File

@ -199,7 +199,7 @@ def hook_intr(uc, intno, user_data):
buf = ecx
count = edx
dummy_content = str(uuid.uuid1())[:32]
dummy_content = str(uuid.uuid1()).encode("latin1")[:32]
if len(dummy_content) > count:
dummy_content = dummy_content[:count]