Skip to content

Commit 8472fd1

Browse files
committed
docs/generate_samples.py now use py3
1 parent 59b3531 commit 8472fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/generate_samples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
def generate_output_result(target, output):
1515
print("Generating result of <{0}>".format(target))
16-
p = subprocess.Popen([python_exe, target], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
16+
p = subprocess.Popen([python_exe, target], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, shell=True)
1717
result = p.communicate()
18-
with open(os.path.join(resultdir, output), "wb") as f:
18+
with open(os.path.join(resultdir, output), "w") as f:
1919
f.write("(cmd) python {0}\n".format(target))
2020
f.write(result[0])
2121

0 commit comments

Comments
 (0)