mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-45060: Get rid of few uses of the equality operators with None (GH-28087)
This commit is contained in:
parent
08767c73b5
commit
3c65457156
9 changed files with 13 additions and 13 deletions
|
@ -136,7 +136,7 @@ class PtyTest(unittest.TestCase):
|
|||
mode = None
|
||||
|
||||
new_stdin_winsz = None
|
||||
if self.stdin_rows != None and self.stdin_cols != None:
|
||||
if self.stdin_rows is not None and self.stdin_cols is not None:
|
||||
try:
|
||||
# Modify pty.STDIN_FILENO window size; we need to
|
||||
# check if pty.openpty() is able to set pty slave
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue