From ecd9484d791a8232414a66f182c3e7efff6cdec0 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sat, 8 Dec 2018 16:58:18 +0100 Subject: [PATCH] [mod] #155: remove `clear` calls which are not availabre on non-Unix --- silkaj/commands.py | 3 --- silkaj/wot.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/silkaj/commands.py b/silkaj/commands.py index d287b39f..374a16d2 100644 --- a/silkaj/commands.py +++ b/silkaj/commands.py @@ -33,7 +33,6 @@ def currency_info(): ] head_block = HeadBlock().head_block ep = EndPoint().ep - system("clear") print( "Connected to node:", ep[best_node(ep, False)], @@ -210,7 +209,6 @@ def network_info(discover): else: endpoints[i]["ip6"] = endpoints[i]["ip6"][:8] + "…" i += 1 - system("clear") print( len(endpoints), "peers ups, with", @@ -254,7 +252,6 @@ def list_issuers(nbr, last): ): issuer2["uid"] = uid issuer2.pop("pubkey") - system("clear") print( "Issuers for last {0} blocks from block n°{1} to block n°{2}".format( nbr, current_nbr - nbr + 1, current_nbr diff --git a/silkaj/wot.py b/silkaj/wot.py index 48547f0f..903a93fa 100644 --- a/silkaj/wot.py +++ b/silkaj/wot.py @@ -1,4 +1,3 @@ -from os import system from time import time from tabulate import tabulate from collections import OrderedDict @@ -33,7 +32,6 @@ def received_sent_certifications(id): time_first_block = get_request("blockchain/block/1")["time"] id_certs = get_informations_for_identity(id) certifications = OrderedDict() - system("clear") params = BlockchainParams().params for certs in id_certs["uids"]: if certs["uid"].lower() == id.lower(): -- GitLab