fix: do not compare literal with "is not"

This commit is contained in:
adasiko 2020-03-22 19:33:28 +07:00 committed by GitHub
parent 12eba07d6c
commit f9154fd806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1002,7 +1002,7 @@ class TextArea(): # TODO support small screens (This is being work on in GNU-Po
for row in range(0, len(datalines)): for row in range(0, len(datalines)):
current = leftlines[row] current = leftlines[row]
if len(datalines[row].strip()) == 0: if len(datalines[row].strip()) == 0:
if current is not 'comment': if current != 'comment':
if current != last: if current != last:
self.datamap[current] = None self.datamap[current] = None
continue continue