Show More
@@ -65,8 +65,11 b' class doublepipe(object):' | |||||
65 |
|
65 | |||
66 | (This will only wait for data if the setup is supported by `util.poll`) |
|
66 | (This will only wait for data if the setup is supported by `util.poll`) | |
67 | """ |
|
67 | """ | |
68 | if getattr(self._main, 'hasbuffer', False): # getattr for classic pipe |
|
68 | if (isinstance(self._main, util.bufferedinputpipe) and | |
69 | return (True, True) # main has data, assume side is worth poking at. |
|
69 | self._main.hasbuffer): | |
|
70 | # Main has data. Assume side is worth poking at. | |||
|
71 | return True, True | |||
|
72 | ||||
70 | fds = [self._main.fileno(), self._side.fileno()] |
|
73 | fds = [self._main.fileno(), self._side.fileno()] | |
71 | try: |
|
74 | try: | |
72 | act = util.poll(fds) |
|
75 | act = util.poll(fds) |
General Comments 0
You need to be logged in to leave comments.
Login now