Skip to content

Commit 8cf1e13

Browse files
author
Martin D. Weinberg
committed
Fix typo in subprocess
1 parent dccf897 commit 8cf1e13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
subprocess.run(["git", "checkout", branch])
3232
subprocess.run(["cp", "CMakeLists.txt", "CMakeLists.txt.orig"])
3333
fwrite = open("CMakeLists.txt", "w")
34-
subprocess.Popen(["sed", "-e", "s/VERSION 3.25/VERSION 3.22/", "CMakeLists.txt.orig"], stdout=fwrite)
34+
pipe = subprocess.Popen(["sed", "-e", "s/VERSION 3.25/VERSION 3.22/", "CMakeLists.txt.orig"], stdout=fwrite)
35+
pipe.stdout.close()
3536
fwrite.close()
36-
subprocess.stdout.close()
3737
os.chdir(doxy_dir)
3838
os.system("git submodule update --init --recursive")
3939

0 commit comments

Comments
 (0)