MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / wrap_binary_data

Method wrap_binary_data

Algorithmia/handler.py:49–53  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

47 return isinstance(arg, bytearray)
48
49 def wrap_binary_data(self, data):
50 if six.PY3:
51 return bytes(data)
52 else:
53 return bytearray(data)
54
55 def format_response(self, response):
56 if self.is_binary(response):

Callers 1

format_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected