changeset 1367:59b9e1161c2c

Generate_config_files: Reorder if statement.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Thu, 29 Oct 2009 10:52:13 +0100
parents fd9867d4dc8c
children 4306568ab9c6
files apps/generate-config-files.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/apps/generate-config-files.py	Thu Oct 29 10:51:46 2009 +0100
+++ b/apps/generate-config-files.py	Thu Oct 29 10:52:13 2009 +0100
@@ -90,9 +90,10 @@
 
 (options, args) = parser.parse_args()
 
-paillier = ViffPaillier(options.keysize)
 if "nacl" == options.paillier:
     paillier = NaClPaillier(options.keysize)
+else:
+    paillier = ViffPaillier(options.keysize)
 
 if len(args) != options.n:
     parser.error("must supply a hostname:port argument for each player")