Author: rubys
Date: Thu Mar 11 20:51:58 2021
New Revision: 1887515

URL: http://svn.apache.org/viewvc?rev=1887515&view=rev
Log:
mark as python2, prep for python3

Modified:
    steve/trunk/whatif.py

Modified: steve/trunk/whatif.py
URL: 
http://svn.apache.org/viewvc/steve/trunk/whatif.py?rev=1887515&r1=1887514&r2=1887515&view=diff
==============================================================================
--- steve/trunk/whatif.py (original)
+++ steve/trunk/whatif.py Thu Mar 11 20:51:58 2021
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 #####
 # Licensed to the Apache Software Foundation (ASF) under one or more
@@ -35,7 +35,7 @@ sys.path.append(os.path.join(os.path.dir
 import stv_tool
 
 def usage():
-  print 'Usage: %s [-v] RAW_VOTES_FILE [seats] [-]name...' % scriptname
+  print('Usage: %s [-v] RAW_VOTES_FILE [seats] [-]name...' % scriptname)
   sys.exit(1)
 
 if __name__ == '__main__':
@@ -92,4 +92,4 @@ if __name__ == '__main__':
   # run the vote
   candidates = stv_tool.run_vote(names, votes, seats)
   candidates.print_results()
-  print 'Done!'
+  print('Done!')


Reply via email to