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() ...@@ -22,13 +22,7 @@ world = threading.local()
world._set = False world._set = False
class CleanableDict(dict): class CallbackDict(dict):
def clear(self):
for k in self.keys():
del self[k]
class CallbackDict(CleanableDict):
def _function_matches(self, one, other): def _function_matches(self, one, other):
params = 'co_filename', 'co_firstlineno' params = 'co_filename', 'co_firstlineno'
matches = list() matches = list()
...@@ -57,7 +51,7 @@ class CallbackDict(CleanableDict): ...@@ -57,7 +51,7 @@ class CallbackDict(CleanableDict):
callback_list.pop() callback_list.pop()
STEP_REGISTRY = CleanableDict() STEP_REGISTRY = {}
CALLBACK_REGISTRY = CallbackDict( CALLBACK_REGISTRY = CallbackDict(
{ {
'all': { '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