Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

comparison using is/is not with string literal rasises SyntaxWarning #185

Open
ijiraq opened this issue Jun 25, 2022 · 0 comments
Open

comparison using is/is not with string literal rasises SyntaxWarning #185

ijiraq opened this issue Jun 25, 2022 · 0 comments

Comments

@ijiraq
Copy link

ijiraq commented Jun 25, 2022

https://github.com/kennethreitz-archive/clint/blob/9d3693d644b8587d985972b6075d970096f6439e/clint/textui/prompt.py#L69

This line uses 'is not' to compare variable with string literal. This should be '=' and in python 3.8 and later raises following warning.

SyntaxWarning: "is not" with a literal. Did you mean "!="?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant