Skip to content

Commit 25e60c5

Browse files
committed
support python3
1 parent 770bcce commit 25e60c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mars/build_ios.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def main():
146146
build_ios(sys.argv[1])
147147
break
148148
else:
149-
num = raw_input('Enter menu:\n1. Clean && build mars.\n2. Clean && build xlog.\n3. Gen iOS mars Project.\n4. Exit\n')
149+
num = input('Enter menu:\n1. Clean && build mars.\n2. Clean && build xlog.\n3. Gen iOS mars Project.\n4. Exit\n')
150150
if num == '1':
151151
build_ios()
152152
break

mars/mars_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def gen_mars_revision_file(version_file_path, tag=''):
344344
''' % (revision, path, url, build_time, tag)
345345

346346
with open('%s/verinfo.h' % version_file_path, 'wb') as f:
347-
f.write(contents)
347+
f.write(contents.encode())
348348
f.flush()
349349

350350
version_data = {

0 commit comments

Comments
 (0)