Skip to content

Commit 6f38bbe

Browse files
author
Michael Erickson
committed
Style change
1 parent 737f274 commit 6f38bbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sasctl/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ def is_ipaddress(hst):
357357
port = address.port
358358
auth = hostname._sw_connection._auth.decode("utf-8")
359359
# Checks to see if authentication was made via user/pass or auth token
360-
if(auth.startswith("Basic")):
360+
if auth.startswith("Basic"):
361361
# User/pass
362362
auth = auth.replace("Basic ", "")
363363
username, password = base64.b64decode(auth).decode("utf-8").split(":")
364-
elif(auth.startswith("Bearer")):
364+
elif auth.startswith("Bearer"):
365365
# Auth token
366366
token = auth.replace("Bearer ", "")
367367
else:

0 commit comments

Comments
 (0)