Dan Kenigsberg has submitted this change and it was merged.
Change subject: asyncproc: Return None when no data could be read
......................................................................
asyncproc: Return None when no data could be read
According to
http://docs.python.org/2/library/io.html#io.RawIOBase
we need to return None when a non-blocking call couldn't produce any
data and not an empty strings.
Originally we returned an empty string and that confuses other IO
subsystems in python which assume this behaviour is correct.
Change-Id: I6329a8651c936789169bd35f26f69580958ef2cd
Signed-off-by: Saggi Mizrahi <smizrahi(a)redhat.com>
Reviewed-on:
http://gerrit.ovirt.org/22265
Reviewed-by: Antoni Segura Puimedon <asegurap(a)redhat.com>
Reviewed-by: Dan Kenigsberg <danken(a)redhat.com>
Reviewed-by: Yaniv Bronhaim <ybronhei(a)redhat.com>
Tested-by: Antoni Segura Puimedon <asegurap(a)redhat.com>
---
M lib/vdsm/utils.py
1 file changed, 7 insertions(+), 1 deletion(-)
Approvals:
Yaniv Bronhaim: Looks good to me, but someone else must approve
Antoni Segura Puimedon: Verified; Looks good to me, but someone else must approve
Dan Kenigsberg: Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/22265
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6329a8651c936789169bd35f26f69580958ef2cd
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: Antoni Segura Puimedon <asegurap(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server