eric6/MicroPython/MicroPythonGraphWidget.py

branch
micropython
changeset 7067
3fc4082fc6ba
parent 7066
e3d034e65afc
child 7229
53054eb5b15a
equal deleted inserted replaced
7066:e3d034e65afc 7067:3fc4082fc6ba
152 inputBytes = b"".join(self.__inputBuffer) 152 inputBytes = b"".join(self.__inputBuffer)
153 lines = inputBytes.splitlines(True) 153 lines = inputBytes.splitlines(True)
154 for line in lines: 154 for line in lines:
155 if not line.endswith(b"\n"): 155 if not line.endswith(b"\n"):
156 # incomplete line (last line); skip it 156 # incomplete line (last line); skip it
157 continue 157 break
158 158
159 line = line.strip() 159 line = line.strip()
160 if line.startswith(b"(") and line.endswith(b")"): 160 if line.startswith(b"(") and line.endswith(b")"):
161 # it may be a tuple we are interested in 161 # it may be a tuple we are interested in
162 rawValues = [val.strip() for val in line[1:-1].split(b",")] 162 rawValues = [val.strip() for val in line[1:-1].split(b",")]

eric ide

mercurial