Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Feb 4, 2025
1 parent 03af775 commit bbd2068
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions synthtool/languages/python_mono_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@ def fix_pb2_headers() -> None:
synthtool.replace(
"**/*_pb2.py",
PB2_HEADER,
rf"\g<1>{LICENSE}\n\n\g<2>", # change order to avoid stacking replacements
rf"\g<1>{LICENSE}\n\n\g<2>",
flags=re.DOTALL | re.MULTILINE,
)
# Also fix *.pyi files if they exist
synthtool.replace(
"**/*_pb2.pyi",
"^\A(.*)",
rf"{LICENSE}\n\n\g<1>", # change order to avoid stacking replacements
r"^\A(.*)",
rf"{LICENSE}\n\n\g<1>",
flags=re.DOTALL | re.MULTILINE,
)

Expand Down

0 comments on commit bbd2068

Please sign in to comment.