Skip to content

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

Merged
koalalorenzo merged 1 commit intokoalalorenzo:masterfrom
aptalca:literal
Jan 20, 2020
Merged

Fix python syntax to suppress 3.8 warnings about "is with a literal"#302
koalalorenzo merged 1 commit intokoalalorenzo:masterfrom
aptalca:literal

Conversation

@aptalca
Copy link
Copy Markdown
Contributor

@aptalca aptalca commented Jan 10, 2020

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

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
@koalalorenzo koalalorenzo merged commit b0f495a into koalalorenzo:master Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants