MCPcopy Index your code
hub / github.com/clips/pattern / decipher_all

Function decipher_all

pattern/web/pdf/pdftypes.py:78–88  ·  view source on GitHub ↗

Recursively deciphers the given object.

(decipher, objid, genno, x)

Source from the content-addressed store, hash-verified

76 return x
77
78def decipher_all(decipher, objid, genno, x):
79 """Recursively deciphers the given object.
80 """
81 if isinstance(x, str):
82 return decipher(objid, genno, x)
83 if isinstance(x, list):
84 x = [ decipher_all(decipher, objid, genno, v) for v in x ]
85 elif isinstance(x, dict):
86 for (k,v) in x.iteritems():
87 x[k] = decipher_all(decipher, objid, genno, v)
88 return x
89
90# Type cheking
91def int_value(x):

Callers 1

getobjMethod · 0.90

Calls 1

iteritemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…