We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f258f2 commit 5e931e8Copy full SHA for 5e931e8
serial_asyncio/__init__.py
@@ -123,7 +123,7 @@ def write(self, data):
123
return
124
if n == len(data):
125
return # Whole request satisfied
126
- assert n >= 0 < len(data)
+ assert 0 <= n < len(data)
127
data = data[n:]
128
self._ensure_writer()
129
@@ -264,7 +264,7 @@ def _write_ready(self):
264
self._close()
265
266
267
268
269
self._write_buffer.append(data) # Try again later
270
self._maybe_resume_protocol()
0 commit comments