fix python-warning about 'is not' use

This commit is contained in:
Context 77
2024-08-01 12:49:18 +02:00
parent b8db5ed462
commit 0ad43684a8

View File

@@ -10,7 +10,7 @@ class StringBuffer:
ready = list()
# Python do-while-loop
idx = self._buffer.find('\n')
while idx is not -1:
while idx != -1:
data = self._buffer[0:idx] #
data = data.strip()
if len(data) >= 1: