Skip to content

Commit

Permalink
Make main function internal
Browse files Browse the repository at this point in the history
  • Loading branch information
phst committed Feb 11, 2025
1 parent 5c69be1 commit 53e590a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _test(bazel: pathlib.Path, *opts: str,
_VERSIONS = frozenset({'28.2', '29.4'})


def main() -> None:
def _main() -> None:
"""Builds the project."""
if isinstance(sys.stdout, io.TextIOWrapper):
sys.stdout.reconfigure(encoding='utf-8', line_buffering=True)
Expand All @@ -66,4 +66,4 @@ def _quote(args: Iterable[str | pathlib.Path]) -> str:


if __name__ == '__main__':
main()
_main()

0 comments on commit 53e590a

Please sign in to comment.