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:
parent
30afe4645e
commit
229aa59dba
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user