From 0b6df62150bbe1eae934ee265e7b64f7d979d459 Mon Sep 17 00:00:00 2001 From: Troy McConaghy Date: Fri, 1 Jun 2018 12:58:26 +0200 Subject: [PATCH] Fixed 2 PEP257 compliance errors --- bigchaindb/tendermint/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bigchaindb/tendermint/utils.py b/bigchaindb/tendermint/utils.py index 75ad045c..1fcf1b9c 100644 --- a/bigchaindb/tendermint/utils.py +++ b/bigchaindb/tendermint/utils.py @@ -39,8 +39,7 @@ def calculate_hash(key_list): def merkleroot(hashes): - """ - Computes the merkle root for a given list. + """Computes the merkle root for a given list. Args: hashes (:obj:`list` of :obj:`bytes`): The leaves of the tree. @@ -69,7 +68,7 @@ def merkleroot(hashes): def public_key64_to_address(base64_public_key): - """Note this only compatibile with Tendermint 0.19.0 """ + """Note this only compatibile with Tendermint 0.19.0""" ed25519_public_key = public_key_from_base64(base64_public_key) encoded_public_key = amino_encoded_public_key(ed25519_public_key) return hashlib.new('ripemd160', encoded_public_key).hexdigest().upper()