Commit 341df0cf by Chris Morgan

Removed lettuce.registry.CleanableDict as it just redefines dict.clear() which already exists.

parent 17845565
......@@ -22,13 +22,7 @@ world = threading.local()
world._set = False
class CleanableDict(dict):
def clear(self):
for k in self.keys():
del self[k]
class CallbackDict(CleanableDict):
class CallbackDict(dict):
def _function_matches(self, one, other):
params = 'co_filename', 'co_firstlineno'
matches = list()
......@@ -57,7 +51,7 @@ class CallbackDict(CleanableDict):
callback_list.pop()
STEP_REGISTRY = CleanableDict()
STEP_REGISTRY = {}
CALLBACK_REGISTRY = CallbackDict(
{
'all': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment