MCPcopy Index your code
hub / github.com/ccxt/ccxt / sanitize_data_input

Method sanitize_data_input

python/ccxt/test/tests_sync.py:937–948  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

935 self.assert_new_and_stored_output(exchange, skip_keys, computed_result, stored_result, False)
936
937 def sanitize_data_input(self, input):
938 # remove nulls and replace with unefined instead
939 if input is None:
940 return None
941 new_input = []
942 for i in range(0, len(input)):
943 current = input[i]
944 if is_null_value(current):
945 new_input.append(None)
946 else:
947 new_input.append(current)
948 return new_input
949
950 def test_request_statically(self, exchange, method, data, type, skip_keys):
951 output = None

Callers 2

Calls 3

is_null_valueFunction · 0.90
rangeFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected