Skip to content

Commit ae8caf6

Browse files
committed
chore(python)[sc-97669]: update python2 code to stop erroring in python3
1 parent b777f79 commit ae8caf6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

do_if_modified.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import sys
44

55
if (len(sys.argv) != 4):
6-
print 'Wrong usage:'
7-
print ' do_if_modified <bin_file> <input_file> <output_file>'
6+
print('Wrong usage:')
7+
print(' do_if_modified <bin_file> <input_file> <output_file>')
88
exit()
99

1010
action_process = os.path.abspath(sys.argv[1])

generate_wdversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
versionfile.write("extern const char kVersionNumber[] = \"1.3.3\";\n")
1212
versionfile.write("extern const char kBuildTime[] = __TIME__;\n")
1313
versionfile.write("extern const char kBuildDate[] = __DATE__;\n")
14-
versionfile.write("extern const char kLastChanges[] = \"" + data.strip() + "\";\n")
14+
versionfile.write("extern const char kLastChanges[] = \"" + data.strip().decode() + "\";\n")
1515
versionfile.write("}")
1616
versionfile.close()
1717

0 commit comments

Comments
 (0)