From 2284a317b5fe2f757dad20b67ff560dc7b91532f Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 23 Sep 2014 10:47:35 +0200 Subject: Add whitespace in order to break long lines. Also, use /usr/bin/env. --- tools/submitcert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/submitcert.py') diff --git a/tools/submitcert.py b/tools/submitcert.py index a4dd9a2..229d36c 100755 --- a/tools/submitcert.py +++ b/tools/submitcert.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +#!/usr/bin/env python import urllib2 import urllib import json @@ -31,7 +30,8 @@ if lookup_in_log: extensions = "" - timestamped_entry = struct.pack(">Q", result["timestamp"]) + entry_type + tls_array(base64.decodestring(certs[0]), 3) + tls_array(extensions, 2) + timestamped_entry = struct.pack(">Q", result["timestamp"]) + entry_type + \ + tls_array(base64.decodestring(certs[0]), 3) + tls_array(extensions, 2) version = struct.pack(">b", 0) leaf_type = struct.pack(">b", 0) merkle_tree_leaf = version + leaf_type + timestamped_entry -- cgit v1.1