8000 Pass through empty newlines in watch stream by marcelldls · Pull Request #2359 · kubernetes-client/python · GitHub
[go: up one dir, main page]

Skip to content

Pass through empty newlines in watch stream #2359

New issue
Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions kubernetes/base/watch/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def iter_resp_lines(resp):
line = buffer[:next_newline].decode(
"utf-8", errors="replace")
buffer = buffer[next_newline+1:]
if line:
yield line
yield line
next_newline = buffer.find(b'\n')


Expand Down
0