diff options
author | Magnus Ahltorp <map@kth.se> | 2014-09-24 12:47:19 +0200 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2014-09-24 12:47:19 +0200 |
commit | 7f2bbc306f773c3b6d866c287893d46c9ce52233 (patch) | |
tree | 7d6bb68202e57981583bff223c6c7fa012b9494e | |
parent | d8ae32fbd31b1f2239cc22b6a0cd0098329a0fa7 (diff) |
Fixed long line and whitespacetesttools2
-rw-r--r-- | tools/certtools.py | 4 | ||||
-rwxr-xr-x | tools/submitcert.py | 3 |
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"] |