Merge pull request #299 from adasiko/patch-1

fix: do not compare literal with "is not"
This commit is contained in:
JotaRandom 2020-10-07 08:14:24 -03:00 committed by GitHub
commit 56089bb002
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)):
current = leftlines[row]
if len(datalines[row].strip()) == 0:
if current is not 'comment':
if current != 'comment':
if current != last:
self.datamap[current] = None
continue