From 01475331f04170d67f27fb7e2ae3f28677a04579 Mon Sep 17 00:00:00 2001 From: unparalleled-js Date: Sat, 16 Oct 2021 09:24:14 -0500 Subject: [PATCH] feat: replace print with echo --- uniswap/cli.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/uniswap/cli.py b/uniswap/cli.py index e60fbc7..7375c72 100644 --- a/uniswap/cli.py +++ b/uniswap/cli.py @@ -76,13 +76,13 @@ def price( quantity = 10 ** decimals price = uni.get_price_input(token_in, token_out, qty=quantity) if raw: - print(price) + click.echo(price) else: if token_in == ETH_ADDRESS: decimals = 18 else: decimals = uni.get_token(token_out).decimals - print(price / 10 ** decimals) + click.echo(price / 10 ** decimals) @main.command() @@ -92,7 +92,7 @@ def token(ctx: click.Context, token: AddressLike) -> None: """Show metadata for token""" uni: Uniswap = ctx.obj["UNISWAP"] t1 = uni.get_token(token) - print(t1) + click.echo(t1) @main.command() @@ -105,6 +105,6 @@ def tokendb(ctx: click.Context, metadata: bool) -> None: if metadata and addr != "0x0000000000000000000000000000000000000000": data = uni.get_token(_str_to_addr(addr)) assert data.symbol.lower() == symbol.lower() - print(data) + click.echo(data) else: - print(BaseToken(symbol, addr)) + click.echo(BaseToken(symbol, addr)) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy