8000 Removing unwanted code · twilio/twilio-python@630c28c · GitHub
[go: up one dir, main page]

Skip to content

Commit 630c28c

Browse files
committed
Removing unwanted code
1 parent 88f6623 commit 630c28c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

twilio/base/client_base.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -262,20 +262,6 @@ def get_hostname(self, uri: str) -> str:
262262
)
263263
return str(urlunparse(parsed_url))
264264

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-
279265
def __repr__(self) -> str:
280266
"""
281267
Provide a friendly representation

0 commit comments

Comments
 (0)
0