Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cd1b361

Browse filesBrowse files
committed
Pass through empty newlines in watch stream
1 parent d80165d commit cd1b361
Copy full SHA for cd1b361

File tree

1 file changed

+1
-2
lines changed
Filter options

1 file changed

+1
-2
lines changed

‎kubernetes/base/watch/watch.py

Copy file name to clipboardExpand all lines: kubernetes/base/watch/watch.py
+1-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def iter_resp_lines(resp):
7676
line = buffer[:next_newline].decode(
7777
"utf-8", errors="replace")
7878
buffer = buffer[next_newline+1:]
79-
if line:
80-
yield line
79+
yield line
8180
next_newline = buffer.find(b'\n')
8281

8382

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.