Skip to content

Commit

Permalink
Merge pull request #48 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Fix SyntaxError: cannot mix bytes and nonbytes literals
  • Loading branch information
DrDonk authored Oct 9, 2019
2 parents 60deb51 + 6c8b942 commit 04ae7fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions unlocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
sys.exit(1)

# Setup imports depending on whether IronPython or CPython
if sys.platform == 'win32' \
or sys.platform == 'cli':
if sys.platform in ('cli', 'win32'):
# noinspection PyUnresolvedReferences
from _winreg import *

Expand Down Expand Up @@ -302,8 +301,8 @@ def patchbase(name):

# Entry to search for in GOS table
# Should work for 12 & 14 of Workstation...
darwin = b'\x10\x00\x00\x00\x10\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00' \
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
darwin = (b'\x10\x00\x00\x00\x10\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')

# Read file into string variable
base = f.read()
Expand Down

0 comments on commit 04ae7fe

Please sign in to comment.