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
@ -101,7 +101,7 @@ def imapsplit(imapstring):
|
||||
|
||||
['(\\HasNoChildren)', '"."', '"INBOX.Sent"']"""
|
||||
|
||||
if not isinstance(imapstring, basestring):
|
||||
if not isinstance(imapstring, str):
|
||||
__debug("imapsplit() got a non-string input; working around.")
|
||||
# Sometimes, imaplib will throw us a tuple if the input
|
||||
# contains a literal. See Python bug
|
||||
|
Reference in New Issue
Block a user