Skip to content

Commit

Permalink
Merge pull request containers#17360 from openshift-cherrypick-robot/c…
Browse files Browse the repository at this point in the history
…herry-pick-17331-to-v4.4

[v4.4] make hack/markdown-preprocess parallel-safe
  • Loading branch information
openshift-merge-robot authored Feb 6, 2023
2 parents 39ec022 + c2971a6 commit 56856b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/markdown-preprocess
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Preprocessor():
cross-referencing all the man pages in which they're used.
"""
for optionfile in self.used_by:
tmpfile = optionfile + '.tmp'
tmpfile = optionfile + '.tmp.' + str(os.getpid())
with open(optionfile, 'r', encoding='utf-8') as fh_in, open(tmpfile, 'w', encoding='utf-8', newline='\n') as fh_out:
fh_out.write("####> This option file is used in:\n")
used_by = ', '.join(x for x in self.used_by[optionfile])
Expand Down

0 comments on commit 56856b0

Please sign in to comment.