From f9154fd806bbf31c79b1769b13d5aa1b67f9c06a Mon Sep 17 00:00:00 2001 From: adasiko Date: Sun, 22 Mar 2020 19:33:28 +0700 Subject: [PATCH] fix: do not compare literal with "is not" --- src/ponysaytool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ponysaytool.py b/src/ponysaytool.py index 7f9a4da5..574a2baa 100755 --- a/src/ponysaytool.py +++ b/src/ponysaytool.py @@ -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