Merge pull request #293 from dnsjts/master

fix: do not compare literal with "is not"
This commit is contained in:
Mattias Andrée 2019-11-16 10:12:42 +01:00 committed by GitHub
commit 70cb831c41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: