From bbd2068836f76d2d830104c2c70aa592802e43e1 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 4 Feb 2025 20:28:45 +0000 Subject: [PATCH] clean up --- synthtool/languages/python_mono_repo.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/synthtool/languages/python_mono_repo.py b/synthtool/languages/python_mono_repo.py index c400fd23e..e1f62b07f 100644 --- a/synthtool/languages/python_mono_repo.py +++ b/synthtool/languages/python_mono_repo.py @@ -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, )