Convert basestring to str
Signed-off-by: Łukasz Żarnowiecki <dolohow@outlook.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:

committed by
Nicolas Sebrecht

parent
1fb8ba9631
commit
4fbb5640ac
@ -393,7 +393,7 @@ class IMAPRepository(BaseRepository):
|
||||
self.imapserver.releaseconnection(imapobj)
|
||||
for s in listresult:
|
||||
if s == None or \
|
||||
(isinstance(s, basestring) and s == ''):
|
||||
(isinstance(s, str) and s == ''):
|
||||
# Bug in imaplib: empty strings in results from
|
||||
# literals. TODO: still relevant?
|
||||
continue
|
||||
|
Reference in New Issue
Block a user