changeset 186:a2d0741e094b

secret_if: allow pass in if-statements
author Sigurd Meldgaard <stm@daimi.au.dk>
date Wed, 16 Dec 2009 14:45:58 +0100
parents 6a37c03be33b
children ec6a31c28623
files pysmcl/secret_ifs.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/secret_ifs.py	Wed Dec 16 14:44:37 2009 +0100
+++ b/pysmcl/secret_ifs.py	Wed Dec 16 14:45:58 2009 +0100
@@ -96,6 +96,8 @@
                         if (not (isinstance(v.parent, ast.Assign) and v.parent.targets[0] is v)
                             and v.id in repl):
                             v.id = repl[v.id]
+            elif isinstance(stm, ast.Pass):
+                pass #Doing nothing is ok
             else:
                 error("Non assignment within secret if", stm)
         return repl