Commands.clear() clears commands list
authorKonstantin Stepanov <kstep@p-nut.info>
Fri, 10 Dec 2010 22:31:08 +0000 (00:31 +0200)
committerKonstantin Stepanov <kstep@p-nut.info>
Fri, 10 Dec 2010 22:45:07 +0000 (00:45 +0200)
dbuscron/command.py

index 776d474..675309f 100644 (file)
@@ -73,3 +73,6 @@ class Commands(object):
     def add(self, matcher, command):
         self.__commands[matcher] = command
 
+    def clear(self):
+        self.__commands = {}
+