folder/Maildir.py removed extra chars

I removed some extra ()
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 13:40:14 +02:00
parent a1f907696f
commit 28910df6c2

View File

@ -50,7 +50,7 @@ def _gettimeseq(date=None):
timehash[date] += 1 timehash[date] += 1
else: else:
timehash[date] = 0 timehash[date] = 0
return (date, timehash[date]) return date, timehash[date]
finally: finally:
timelock.release() timelock.release()
@ -106,7 +106,7 @@ class MaildirFolder(BaseFolder):
return True return True
timestampstr = timestampmatch.group() timestampstr = timestampmatch.group()
timestamplong = int(timestampstr) timestamplong = int(timestampstr)
if (timestamplong < time.mktime(date)): if timestamplong < time.mktime(date):
return False return False
else: else:
return True return True
@ -441,7 +441,7 @@ class MaildirFolder(BaseFolder):
filename += infostr filename += infostr
newfilename = os.path.join(dir_prefix, filename) newfilename = os.path.join(dir_prefix, filename)
if (newfilename != oldfilename): if newfilename != oldfilename:
try: try:
os.rename(os.path.join(self.getfullname(), oldfilename), os.rename(os.path.join(self.getfullname(), oldfilename),
os.path.join(self.getfullname(), newfilename)) os.path.join(self.getfullname(), newfilename))