decipher_all bytes

pull/2/head
cybjit 2014-09-11 23:33:14 +02:00
parent 6357e2da80
commit cba5a42ba8
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ def resolve_all(x, default=None):
def decipher_all(decipher, objid, genno, x): def decipher_all(decipher, objid, genno, x):
"""Recursively deciphers the given object. """Recursively deciphers the given object.
""" """
if isinstance(x, str): if isinstance(x, bytes):
return decipher(objid, genno, x) return decipher(objid, genno, x)
if isinstance(x, list): if isinstance(x, list):
x = [decipher_all(decipher, objid, genno, v) for v in x] x = [decipher_all(decipher, objid, genno, v) for v in x]