Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22dad08

Browse files
author
Bilal Al
committed
polish
1 parent 621d60b commit 22dad08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

splitio/api/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import abc
66
import logging
77
import json
8-
import time
98
import threading
109
from urllib3.util import parse_url
1110

@@ -220,13 +219,13 @@ def post(self, server, path, sdk_key, body, query=None, extra_headers=None): #
220219
def _set_authentication(self, session):
221220
if self._authentication_scheme == AuthenticateScheme.KERBEROS_SPNEGO:
222221
_LOGGER.debug("Using Kerberos Spnego Authentication")
223-
if self._authentication_params is not [None, None]:
222+
if self._authentication_params != [None, None]:
224223
session.auth = HTTPKerberosAuth(principal=self._authentication_params[0], password=self._authentication_params[1], mutual_authentication=OPTIONAL)
225224
else:
226225
session.auth = HTTPKerberosAuth(mutual_authentication=OPTIONAL)
227226
elif self._authentication_scheme == AuthenticateScheme.KERBEROS_PROXY:
228227
_LOGGER.debug("Using Kerberos Proxy Authentication")
229-
if self._authentication_params is not [None, None]:
228+
if self._authentication_params != [None, None]:
230229
session.mount('https://', HTTPAdapterWithProxyKerberosAuth(principal=self._authentication_params[0], password=self._authentication_params[1]))
231230
else:
232231
session.mount('https://', HTTPAdapterWithProxyKerberosAuth())

0 commit comments

Comments
 (0)