We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c4351 commit 1319bb6Copy full SHA for 1319bb6
helpers/combine_docfiles.py
@@ -54,10 +54,6 @@
54
replace_content = groups[0] + groups[1]
55
56
# 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)
+groups = re.match(insert_separator_regex, input, re.DOTALL).groups(0)
62
output = groups[0] + replace_content + groups[2] + "\n"
63
open(sys.argv[1], "w").write(output)
0 commit comments