(decipher, objid, genno, x)
return x
Recursively decipher X.
Recursively decipher X.
Recursively decipher X .
def decipher_all(decipher, objid, genno, x):
  '''
  Recursively decipher X.
  '''
  if isinstance(x, str):
    return decipher(objid, genno, x)
  if isinstance(x, list):
    x = [ decipher_all(decipher, objid, genno, v) for v in x ]
  elif isinstance(x, dict):
    for (k,v) in x.iteritems():
      x[k] = decipher_all(decipher, objid, genno, v)
  return x
def decipher_all ( decipher , objid , genno , x ) : if isinstance ( x , str ) : return decipher ( objid , genno , x ) if isinstance ( x , list ) : x = [ decipher_all ( decipher , objid , genno , v ) for v in x ] elif isinstance ( x , dict ) : for ( k , v ) in x . iteritems ( ) : x [ k ] = decipher_all ( decipher , objid , genno , v ) return x