We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 243a6dc commit c7099e7Copy full SHA for c7099e7
Lib/multiprocessing/connection.py
@@ -343,10 +343,10 @@ def _recv_bytes(self, maxsize=None):
343
elif err == _winapi.ERROR_MORE_DATA:
344
return_value = self._get_more_data(ov, maxsize)
345
except:
346
- if return_value == sentinel:
+ if return_value is sentinel:
347
raise
348
349
- if return_value != sentinel:
+ if return_value is not sentinel:
350
return return_value
351
except OSError as e:
352
if e.winerror == _winapi.ERROR_BROKEN_PIPE:
0 commit comments