Modernize code: "== None" -> "is None" (#2081)

This commit is contained in:
Dimitri Papadopoulos Orfanos 2021-09-21 21:55:36 +02:00 committed by GitHub
parent e4f13de439
commit 29344b5fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ A somewhat contrived example::
Returns None if no message is available.
pre: self.is_open() # we must have an open connection
post: __return__ == None or isinstance(__return__, Message)
post: __return__ is None or isinstance(__return__, Message)
"""
class ComplexMailClient(SimpleMailClient):