make print default to Rich version

This commit is contained in:
Joe Kaufeld 2022-08-15 13:29:44 -04:00
parent d44340ab9d
commit 4580ab21a7

View File

@ -7,7 +7,7 @@ import uuid
import click import click
import httpx import httpx
from rich import pretty from rich import pretty
from rich import print as rprint from rich import print # yes, deliberately shadow `print`
from shiv.bootstrap import current_zipfile from shiv.bootstrap import current_zipfile
import src import src
@ -29,7 +29,7 @@ def main(ctx):
# https://github.com/Textualize/rich/discussions/2462 # https://github.com/Textualize/rich/discussions/2462
if "crop" in kwargs: if "crop" in kwargs:
del kwargs["crop"] del kwargs["crop"]
rprint(*args, **kwargs) print(*args, **kwargs)
banner = random.choice(BANNERS) banner = random.choice(BANNERS)