From 99f85737c563c6d37ea796e66a0f3240a52c8fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sat, 29 Aug 2020 09:07:15 +0200 Subject: [PATCH] Removed python2 code in imaputil This code is marked as python2, could be removed. --- offlineimap/imaputil.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/offlineimap/imaputil.py b/offlineimap/imaputil.py index 51fff48..403c38b 100644 --- a/offlineimap/imaputil.py +++ b/offlineimap/imaputil.py @@ -128,13 +128,7 @@ def imapsplit(imapstring): retval.append(quoted) workstr = rest else: - splits = None - # Python2 - if hasattr(string, 'split'): - splits = string.split(workstr, maxsplit = 1) - # Python3 - else: - splits = str.split(workstr, maxsplit = 1) + splits = str.split(workstr, maxsplit=1) splitslen = len(splits) # The unquoted word is splits[0]; the remainder is splits[1] if splitslen == 2: