Removed python2 code in imaputil
This code is marked as python2, could be removed.
This commit is contained in:
parent
a655fa4fc2
commit
99f85737c5
@ -127,12 +127,6 @@ def imapsplit(imapstring):
|
|||||||
(quoted, rest) = __split_quoted(workstr)
|
(quoted, rest) = __split_quoted(workstr)
|
||||||
retval.append(quoted)
|
retval.append(quoted)
|
||||||
workstr = rest
|
workstr = rest
|
||||||
else:
|
|
||||||
splits = None
|
|
||||||
# Python2
|
|
||||||
if hasattr(string, 'split'):
|
|
||||||
splits = string.split(workstr, maxsplit = 1)
|
|
||||||
# Python3
|
|
||||||
else:
|
else:
|
||||||
splits = str.split(workstr, maxsplit=1)
|
splits = str.split(workstr, maxsplit=1)
|
||||||
splitslen = len(splits)
|
splitslen = len(splits)
|
||||||
|
Loading…
Reference in New Issue
Block a user