Skip to content

Commit c7099e7

Browse files
authored
Apply suggestions from code review
1 parent 243a6dc commit c7099e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/multiprocessing/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,10 @@ def _recv_bytes(self, maxsize=None):
343343
elif err == _winapi.ERROR_MORE_DATA:
344344
return_value = self._get_more_data(ov, maxsize)
345345
except:
346-
if return_value == sentinel:
346+
if return_value is sentinel:
347347
raise
348348

349-
if return_value != sentinel:
349+
if return_value is not sentinel:
350350
return return_value
351351
except OSError as e:
352352
if e.winerror == _winapi.ERROR_BROKEN_PIPE:

0 commit comments

Comments
 (0)