kennethreitz / clint

Python Command-line Application Tools
http://pypi.python.org/pypi/clint/
ISC License
95 stars 19 forks source link

Change "is not" to "!=" to silence warning #183

Open lalaithion opened 3 years ago

lalaithion commented 3 years ago

Running this code gives the following warning:

/opt/homebrew/Cellar/gitless/0.8.8_7/libexec/lib/python3.9/site-packages/clint/textui/prompt.py:68: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if prompt[-1] is not ' ':
foreachthing commented 2 years ago

One year later, this still raises an error message. Can this fix be manually merged? Thanks!

weakish commented 2 years ago

duplicate of #182