added has()
This commit is contained in:
parent
60af68519f
commit
9bde0aae7e
|
|
@ -76,6 +76,9 @@ class OnScreenDebug:
|
|||
self.data[key] = (self.frame, value)
|
||||
return 1 # to allow assert(onScreenDebug.add("foo", bar))
|
||||
|
||||
def has(self, key):
|
||||
return key in self.data
|
||||
|
||||
def remove(self, key):
|
||||
del self.data[key]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue