From 7f2bbc306f773c3b6d866c287893d46c9ce52233 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Wed, 24 Sep 2014 12:47:19 +0200 Subject: Fixed long line and whitespace --- tools/certtools.py | 4 ++-- tools/submitcert.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/certtools.py b/tools/certtools.py index 0a482e3..48e7b41 100644 --- a/tools/certtools.py +++ b/tools/certtools.py @@ -25,7 +25,7 @@ def get_certs_from_file(certfile): certs = [] cert = "" incert = False - + for line in open(certfile): line = line.strip() if line == "-----BEGIN CERTIFICATE-----": @@ -41,7 +41,7 @@ def get_certs_from_file(certfile): def get_root_cert(issuer): accepted_certs = \ json.loads(open("googlelog-accepted-certs.txt").read())["certificates"] - + root_cert = None for accepted_cert in accepted_certs: diff --git a/tools/submitcert.py b/tools/submitcert.py index 7471272..026f768 100755 --- a/tools/submitcert.py +++ b/tools/submitcert.py @@ -59,7 +59,8 @@ if lookup_in_log: print fetched_entry - print "does the leaf_input of the fetched entry match what we calculated:", base64.decodestring(fetched_entry["leaf_input"]) == merkle_tree_leaf + print "does the leaf_input of the fetched entry match what we calculated:", \ + base64.decodestring(fetched_entry["leaf_input"]) == merkle_tree_leaf extra_data = fetched_entry["extra_data"] -- cgit v1.1