MCPcopy Index your code
hub / github.com/webpy/webpy / decode

Method decode

web/session.py:231–237  ·  view source on GitHub ↗

decodes the data to get back the session dict

(self, session_data)

Source from the content-addressed store, hash-verified

229 return encodebytes(pickled)
230
231 def decode(self, session_data):
232 """decodes the data to get back the session dict"""
233 if isinstance(session_data, str):
234 session_data = session_data.encode()
235
236 pickled = decodebytes(session_data)
237 return pickle.loads(pickled)
238
239
240class DiskStore(Store):

Callers 10

convert_timestampFunction · 0.80
fMethod · 0.80
test_layers_unicodeMethod · 0.80
loadMethod · 0.80
websafeFunction · 0.80
rawinputFunction · 0.80
__getitem__Method · 0.80
__getitem__Method · 0.80
__setitem__Method · 0.80
textMethod · 0.80

Calls 1

encodeMethod · 0.80

Tested by 3

convert_timestampFunction · 0.64
fMethod · 0.64
test_layers_unicodeMethod · 0.64