mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
platform_utils: have Windows select stream return "" at EOF
This matches *NIX behavior where the last read is '', not None. Bug: https://crbug.com/gerrit/12329 Change-Id: I48b026b4d1b8d7c6abbce198757b970931869e1a Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255352 Reviewed-by: David Pursehouse <dpursehouse@collab.net> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
37f28f1b4e
commit
8f9bf484d8
@ -179,7 +179,7 @@ class _FileDescriptorStreamsThreads(FileDescriptorStreams):
|
|||||||
for line in iter(self.fd.readline, b''):
|
for line in iter(self.fd.readline, b''):
|
||||||
self.queue.put(_FileDescriptorStreamsThreads.QueueItem(self, line))
|
self.queue.put(_FileDescriptorStreamsThreads.QueueItem(self, line))
|
||||||
self.fd.close()
|
self.fd.close()
|
||||||
self.queue.put(_FileDescriptorStreamsThreads.QueueItem(self, None))
|
self.queue.put(_FileDescriptorStreamsThreads.QueueItem(self, b''))
|
||||||
|
|
||||||
|
|
||||||
def symlink(source, link_name):
|
def symlink(source, link_name):
|
||||||
|
Loading…
Reference in New Issue
Block a user