summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/certtools.py4
-rwxr-xr-xtools/submitcert.py3
2 files changed, 4 insertions, 3 deletions
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"]