Skip to content

Commit

Permalink
Fix a silly bug. Sigh.
Browse files Browse the repository at this point in the history
Change-Id: Ia67342d56907053228895ed6cd65c98949bd7c43
Reviewed-on: https://code-review.googlesource.com/c/re2/+/63352
Reviewed-by: Paul Wankadia <[email protected]>
Reviewed-by: Alex Chernyakhovsky <[email protected]>
  • Loading branch information
junyer committed Jun 21, 2024
1 parent 0d992b4 commit 6144b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6144b62

Please sign in to comment.