def clean(self):
        if self.response.type == 'application/json':
            cleaned = copy.deepcopy(self.response.data)
            if self.cleaner is not None:
                cleaned = self.cleaner(cleaned)

            typed_response = {
                dict: DictResponse,
                int: IntResponse,
            }.get(type(cleaned), BaseResponse)
            self.response = typed_response.from_cleaned(self.response, cleaned)
        else:
            self.response = FileResponse(self.response.response)
Clean response.
dataset/ETHPy150Open jasonkeene/python-ubersmith/ubersmith/calls/__init__.py/BaseCall.clean