From 6144b62bece50a4af8bcdb166f04f6ec5af3d6d8 Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Fri, 21 Jun 2024 19:58:35 +0000 Subject: [PATCH] Fix a silly bug. Sigh. Change-Id: Ia67342d56907053228895ed6cd65c98949bd7c43 Reviewed-on: https://code-review.googlesource.com/c/re2/+/63352 Reviewed-by: Paul Wankadia Reviewed-by: Alex Chernyakhovsky --- python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index e695cb0f..e128cf9f 100644 --- a/python/setup.py +++ b/python/setup.py @@ -117,7 +117,7 @@ def include_dirs(): ): with open(filename, 'r') as file: contents = file.read() - filename = re.sub(r'^re2(?=\.py)', '__init__', contents) + filename = re.sub(r'^re2(?=\.py)', '__init__', filename) contents = re.sub(r'^(?=import _)', 'from . ', contents, flags=re.MULTILINE) with open(f'{PACKAGE}/{filename}', 'x') as file: file.write(contents)