[or-cvs] r20749: {projects} Simplify code some more. (projects/archives/trunk/exonerator)

kloesing at seul.org kloesing at seul.org
Sun Oct 4 08:57:14 UTC 2009


Author: kloesing
Date: 2009-10-04 04:57:13 -0400 (Sun, 04 Oct 2009)
New Revision: 20749

Modified:
   projects/archives/trunk/exonerator/exonerator.py
Log:
Simplify code some more.


Modified: projects/archives/trunk/exonerator/exonerator.py
===================================================================
--- projects/archives/trunk/exonerator/exonerator.py	2009-10-04 06:32:29 UTC (rev 20748)
+++ projects/archives/trunk/exonerator/exonerator.py	2009-10-04 08:57:13 UTC (rev 20749)
@@ -155,12 +155,9 @@
                      consensusTime <= timestampTooNew:
                     tooNewConsensuses.add(directoryOrFile)
     allConsensuses = set()
-    for consensus in tooOldConsensuses:
-        allConsensuses.add(consensus)
-    for consensus in relevantConsensuses:
-        allConsensuses.add(consensus)
-    for consensus in tooNewConsensuses:
-        allConsensuses.add(consensus)
+    allConsensuses.update(tooOldConsensuses)
+    allConsensuses.update(relevantConsensuses)
+    allConsensuses.update(tooNewConsensuses)
     if not allConsensuses:
         print "  None found!\n\n%s\n\nResult is INDECISIVE!\n\nWe " \
               "cannot make any statement about IP address %s being a " \



More information about the tor-commits mailing list