8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f6623 commit 630c28cCopy full SHA for 630c28c
twilio/base/client_base.py
@@ -262,20 +262,6 @@ def get_hostname(self, uri: str) -> str:
262
)
263
return str(urlunparse(parsed_url))
264
265
- def remove_nulls(self, data):
266
- res = {}
267
- for key, sub_dict in data.items():
268
- temp_dict = {}
269
- if type(sub_dict) != str and sub_dict is not None:
270
- for sub_key, sub_value in sub_dict.items():
271
- if sub_value is not None:
272
- temp_dict[sub_key] = sub_value
273
- if type(sub_dict) == str:
274
- temp_dict = sub_dict
275
- if temp_dict:
276
- res[key] = temp_dict
277
- return res
278
-
279
def __repr__(self) -> str:
280
"""
281
Provide a friendly representation
0 commit comments