[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [depictor/master] Add commented debugging to write_website.py



commit b0f88d0eab7dc04bb5eac7fa3ca12e204feb2b2d
Author: Tom Ritter <tom@xxxxxxxxx>
Date:   Sun Mar 8 12:58:27 2015 -0500

    Add commented debugging to write_website.py
---
 write_website.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/write_website.py b/write_website.py
index c0deac6..415c7ea 100755
--- a/write_website.py
+++ b/write_website.py
@@ -59,8 +59,12 @@ def main():
     f.write("%s,%i,%i\n" % (ds, time.time() * 1000, int(consensus_fetching_runtimes[ds] * 1000)))
   f.close()
   
-  # produces the website
+  # great for debugging
+  #import pickle
+  #pickle.dump(consensuses, open('consensus.p', 'wb'))
+  #pickle.dump(votes, open('votes.p', 'wb'))
 
+  # produces the website
   w = WebsiteWriter()
   w.set_consensuses(consensuses)
   w.set_votes(votes)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits