Skip to content

Commit

Permalink
Removing unwanted code
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere committed Dec 12, 2024
1 parent 88f6623 commit 630c28c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions twilio/base/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,20 +262,6 @@ def get_hostname(self, uri: str) -> str:
)
return str(urlunparse(parsed_url))

def remove_nulls(self, data):
res = {}
for key, sub_dict in data.items():
temp_dict = {}
if type(sub_dict) != str and sub_dict is not None:
for sub_key, sub_value in sub_dict.items():
if sub_value is not None:
temp_dict[sub_key] = sub_value
if type(sub_dict) == str:
temp_dict = sub_dict
if temp_dict:
res[key] = temp_dict
return res

def __repr__(self) -> str:
"""
Provide a friendly representation
Expand Down

0 comments on commit 630c28c

Please sign in to comment.