Modernize code: "== None" -> "is None" (#2081)
This commit is contained in:
parent
e4f13de439
commit
29344b5fed
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue