Fix Python 3 samples (#836)

This commit is contained in:
Fangrui Song
2017-05-14 18:11:22 -07:00
committed by Nguyen Anh Quynh
parent 014ccfb94a
commit 85e0a54e35
4 changed files with 4 additions and 4 deletions

View File

@ -431,7 +431,7 @@ def test_i386_inout():
def test_i386_context_save():
print("Save/restore CPU context in opaque blob")
address = 0
code = '\x40' # inc eax
code = b'\x40' # inc eax
try:
# Initialize emulator
mu = Uc(UC_ARCH_X86, UC_MODE_32)