From fbcbd8c578512b34dd7353827ab75a55d1fb17ba Mon Sep 17 00:00:00 2001 From: Konstantin Stepanov Date: Sat, 11 Dec 2010 00:31:08 +0200 Subject: [PATCH] Commands.clear() clears commands list --- dbuscron/command.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbuscron/command.py b/dbuscron/command.py index 776d474..675309f 100644 --- a/dbuscron/command.py +++ b/dbuscron/command.py @@ -73,3 +73,6 @@ class Commands(object): def add(self, matcher, command): self.__commands[matcher] = command + def clear(self): + self.__commands = {} + -- 1.7.9.5