In the Python sdk, version 4.7.2, client.py will raise a SyntaxWarning on Python 3.8.x. The add_parameter method uses the syntax is not which checks for identity not equality.
@staticmethod
def add_parameter(request, key, value):
if value and value is not 'none':
request.parameters[key] = value
The code should be updated to:
@staticmethod
def add_parameter(request, key, value):
if value and value != 'none':
request.parameters[key] = value
I am happy to create a PR to fix this issue. From what I can see the syntax appears in at least 4 places.
In the Python sdk, version 4.7.2, client.py will raise a SyntaxWarning on Python 3.8.x. The
add_parameter
method uses the syntaxis not
which checks for identity not equality.The code should be updated to:
I am happy to create a PR to fix this issue. From what I can see the syntax appears in at least 4 places.