Skip to content

Commit 1319bb6

Browse files
committed
revert change to
1 parent b5c4351 commit 1319bb6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

helpers/combine_docfiles.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
5454
replace_content = groups[0] + groups[1]
5555

5656
# Find where to put the replacement content, overwrite the input file
57-
m = re.match(insert_separator_regex, input, re.DOTALL)
58-
if not m:
59-
print("insert regexp not matched in %s" % sys.argv[1])
60-
sys.exit(0)
61-
groups = m.groups(0)
57+
groups = re.match(insert_separator_regex, input, re.DOTALL).groups(0)
6258
output = groups[0] + replace_content + groups[2] + "\n"
6359
open(sys.argv[1], "w").write(output)

0 commit comments

Comments
 (0)