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

Method is_binary

Algorithmia/handler.py:43–47  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

41 return data
42
43 def is_binary(self, arg):
44 if six.PY3:
45 return isinstance(arg, base64.bytes_types)
46
47 return isinstance(arg, bytearray)
48
49 def wrap_binary_data(self, data):
50 if six.PY3:

Callers 1

format_responseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected