ui/UIBase.py changed not var in

This patch changes:

if not var1 in var2

with

if var1 not in var2
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 18:07:59 +02:00
parent 5ad87efb84
commit b1a719ad9e

View File

@ -208,7 +208,7 @@ class UIBase:
def debug(self, debugtype, msg):
cur_thread = threading.currentThread()
if not cur_thread in self.debugmessages:
if cur_thread not in self.debugmessages:
# deque(..., self.debugmsglen) would be handy but was
# introduced in p2.6 only, so we'll need to work around and
# shorten our debugmsg list manually :-(
@ -225,7 +225,7 @@ class UIBase:
def add_debug(self, debugtype):
global debugtypes
if debugtype in debugtypes:
if not debugtype in self.debuglist:
if debugtype not in self.debuglist:
self.debuglist.append(debugtype)
self.debugging(debugtype)
else: