Skip to content

Commit 5672b15

Browse files
committed
review fix
1 parent 05989d3 commit 5672b15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/asyncio/protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _feed_data_to_buffered_proto(proto, data):
207207
raise RuntimeError('get_buffer() returned an empty buffer')
208208

209209
if buf_len >= data_len:
210-
buf[:data_len] = data[start:start + data_len] if start else data
210+
buf[:data_len] = data[start:]
211211
proto.buffer_updated(data_len)
212212
return
213213
else:

0 commit comments

Comments
 (0)