mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-24 21:37:59 +01:00
fix: do not compare literal with "is not"
Python3.8 issued the following warning on each ponysay invocation: /bin/ponysay/backend.py:294: SyntaxWarning: "is not" with a literal. Did you mean "!="? This has been corrected here. Signed-off-by: MÓZES Ádám István <mozes.adam.istvan@pm.me>
This commit is contained in:
parent
67d18d957d
commit
69c23e3ae1
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ class Backend():
|
|||
props = dollar[7:]
|
||||
if len(props) > 0:
|
||||
if ',' in props:
|
||||
if props[0] is not ',':
|
||||
if props[0] != ',':
|
||||
w = props[:props.index(',')]
|
||||
h = int(props[props.index(',') + 1:])
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue