mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-21 20:18:00 +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:]
|
||||
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