mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 04:27:58 +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:]
|
props = dollar[7:]
|
||||||
if len(props) > 0:
|
if len(props) > 0:
|
||||||
if ',' in props:
|
if ',' in props:
|
||||||
if props[0] is not ',':
|
if props[0] != ',':
|
||||||
w = props[:props.index(',')]
|
w = props[:props.index(',')]
|
||||||
h = int(props[props.index(',') + 1:])
|
h = int(props[props.index(',') + 1:])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue