Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _extract_papermill_output_data(self, sig, payload):
if sig.startswith(RECORD_PAYLOAD_PREFIX):
# Fetch '+json' and strip the leading '+'
encoder = sig.split(RECORD_PAYLOAD_PREFIX, 1)[1][1:]
# First key is the only named payload
for name, data in payload.items():
return encoder_registry.decode(Scrap(name, data, encoder))