diff --git a/gpt_bin/gpt_ini2bin.py b/gpt_bin/gpt_ini2bin.py index 21530563..0870388d 100755 --- a/gpt_bin/gpt_ini2bin.py +++ b/gpt_bin/gpt_ini2bin.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import uuid import struct @@ -27,7 +27,7 @@ def zero_pad(s, size): if (len(s) > size): print('error', len(s)) - s += '\0' * (size - len(s)) + s += b'\0' * (size - len(s)) return s def copy_section(cfg, a, b): @@ -155,22 +155,22 @@ def main(): npart = len(part) out = sys.stdout - out.write(struct.pack('