mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Replaced boolean test with is None
This commit is contained in:
parent
094662a165
commit
936654bce0
3 changed files with 4 additions and 4 deletions
|
@ -539,7 +539,7 @@ class IMAP4:
|
|||
# Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY')
|
||||
self.untagged_responses = {} # Flush old responses.
|
||||
self.is_readonly = readonly
|
||||
if readonly:
|
||||
if readonly is not None:
|
||||
name = 'EXAMINE'
|
||||
else:
|
||||
name = 'SELECT'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue