Replaced boolean test with is None

This commit is contained in:
Raymond Hettinger 2002-06-01 03:06:31 +00:00
parent 094662a165
commit 936654bce0
3 changed files with 4 additions and 4 deletions

View file

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