From 28910df6c20fd931a27fb1028f2ea65062c3bb15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 30 Aug 2020 13:40:14 +0200 Subject: [PATCH] folder/Maildir.py removed extra chars I removed some extra () --- offlineimap/folder/Maildir.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/folder/Maildir.py b/offlineimap/folder/Maildir.py index 86f4f6e..9df641c 100644 --- a/offlineimap/folder/Maildir.py +++ b/offlineimap/folder/Maildir.py @@ -50,7 +50,7 @@ def _gettimeseq(date=None): timehash[date] += 1 else: timehash[date] = 0 - return (date, timehash[date]) + return date, timehash[date] finally: timelock.release() @@ -106,7 +106,7 @@ class MaildirFolder(BaseFolder): return True timestampstr = timestampmatch.group() timestamplong = int(timestampstr) - if (timestamplong < time.mktime(date)): + if timestamplong < time.mktime(date): return False else: return True @@ -441,7 +441,7 @@ class MaildirFolder(BaseFolder): filename += infostr newfilename = os.path.join(dir_prefix, filename) - if (newfilename != oldfilename): + if newfilename != oldfilename: try: os.rename(os.path.join(self.getfullname(), oldfilename), os.path.join(self.getfullname(), newfilename))