Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere committed Dec 12, 2024
1 parent d79366e commit 824ed9f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions twilio/auth_strategy/no_auth_strategy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from auth_type import AuthType
from twilio.auth_strategy.auth_strategy import AuthStrategy


class NoAuthStrategy(AuthStrategy):
Expand Down
5 changes: 0 additions & 5 deletions twilio/base/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ def request(
"""
headers = self.get_headers(method, headers)

##If credential provider is provided by user, get the associated auth strategy
##Using the auth strategy, fetch the auth string and set it to authorization header
if self.credential_provider:

auth_strategy = self.credential_provider.to_auth_strategy()
Expand Down Expand Up @@ -153,9 +151,6 @@ async def request_async(
if method == 'DELETE':
del headers["Accept"]

##If credential provider is provided by user, get the associated auth strategy
##Using the auth strategy, fetch the auth string and set it to authorization header

if self.credential_provider:
auth_strategy = self.credential_provider.to_auth_strategy()
headers["Authorization"] = auth_strategy.get_auth_string()
Expand Down
3 changes: 0 additions & 3 deletions twilio/base/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ async def fetch_async(
timeout=timeout,
allow_redirects=allow_redirects,
)



return self._parse_fetch(method, uri, response)

def _parse_update(self, method: str, uri: str, response: Response) -> Any:
Expand Down

0 comments on commit 824ed9f

Please sign in to comment.