Apply fix from #21489 to the 2014.7 branch

This code has been refactored in develop, so the original
pull request wasn't backporting cleanly. This applies the same fix
to the older branch(es).
This commit is contained in:
rallytime 2015-03-10 15:52:24 -06:00
parent d8f4160170
commit ee159ff3df

View File

@ -121,7 +121,9 @@ def decrypt_object(o, gpg):
o[k] = decrypt_object(v, gpg)
return o
elif isinstance(o, list):
return [decrypt_object(e, gpg) for e in o]
for number, value in enumerate(o):
o[number] = decrypt_object(value, gpg)
return o
else:
return o