koalalorenzo / python-digitalocean

🐍🐳 Python module to manage Digital Ocean droplets
GNU Lesser General Public License v3.0
1.26k stars 301 forks source link

Fix python syntax to suppress 3.8 warnings about "is with a literal" #302

Closed aptalca closed 4 years ago

aptalca commented 4 years ago

Python 3.8 is now displaying a warning when is is used with a literal.

Here are the relevant errors with 2.4.0:

/usr/lib/python3.8/site-packages/digitalocean/LoadBalancer.py:19: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if type is 'cookies':

See python/cpython#9642 for more info