summaryrefslogtreecommitdiff
path: root/shared/memzip/make-memzip.py
diff options
context:
space:
mode:
Diffstat (limited to 'shared/memzip/make-memzip.py')
-rwxr-xr-xshared/memzip/make-memzip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/memzip/make-memzip.py b/shared/memzip/make-memzip.py
index 9730f5e00..cc0df8207 100755
--- a/shared/memzip/make-memzip.py
+++ b/shared/memzip/make-memzip.py
@@ -36,7 +36,7 @@ def create_c_from_file(c_filename, zip_filename):
break
print(' ', end='', file=c_file)
for byte in buf:
- if type(byte) is types.StringType:
+ if isinstance(byte, types.StringType):
print(' 0x{:02x},'.format(ord(byte)), end='', file=c_file)
else:
print(' 0x{:02x},'.format(byte), end='', file=c_file)