Author: gstein
Date: Fri Mar 12 03:32:35 2021
New Revision: 1887525

URL: http://svn.apache.org/viewvc?rev=1887525&view=rev
Log:
the set() was unstable, so switching to sorted() is "no functional change"

Modified:
    steve/trunk/whatif.py

Modified: steve/trunk/whatif.py
URL: 
http://svn.apache.org/viewvc/steve/trunk/whatif.py?rev=1887525&r1=1887524&r2=1887525&view=diff
==============================================================================
--- steve/trunk/whatif.py (original)
+++ steve/trunk/whatif.py Fri Mar 12 03:32:35 2021
@@ -79,9 +79,7 @@ if __name__ == '__main__':
   else:
     # only include specified candidates
     # NOTE: order is important, so sort the names for repeatability
-    names = list(map(lambda name: alias[name.lower()], set(sys.argv)))
-    ### not yet.
-    #names = [ alias[n.lower()] for n in sorted(sys.argv) ]
+    names = [ alias[n.lower()] for n in sorted(sys.argv) ]
 
   # Trim the raw votes based on cmdline params. Eliminate votes that
   # are not for one of the allowed names. Do not include voters who


Reply via email to