bpo-45060: Get rid of few uses of the equality operators with None (GH-28087)

This commit is contained in:
Serhiy Storchaka 2021-08-31 16:59:52 +03:00 committed by GitHub
parent 08767c73b5
commit 3c65457156
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 13 deletions

View file

@ -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