offlineimap/ui files singleton-comparison

This patch change these errors in the ui folder

C0121: Comparison to None should be 'expr is None' (singleton-comparison)
C0121: Comparison to None should be 'expr is not None' (singleton-comparison)
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 11:07:59 +02:00
parent 30afe4645e
commit 229aa59dba

View File

@ -200,7 +200,7 @@ class UIBase():
If no account has been registered with this thread, return 'None'.""" If no account has been registered with this thread, return 'None'."""
if thr == None: if thr is None:
thr = threading.currentThread() thr = threading.currentThread()
if thr in self.threadaccounts: if thr in self.threadaccounts:
return self.threadaccounts[thr] return self.threadaccounts[thr]