mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-24 21:37:59 +01:00
Merge pull request #293 from dnsjts/master
fix: do not compare literal with "is not"
This commit is contained in:
commit
70cb831c41
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