projects
/
dbuscron
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Commands class is iteratable now
[dbuscron]
/
dbuscron
/
command.py
diff --git
a/dbuscron/command.py
b/dbuscron/command.py
index
e05a948
..
776d474
100644
(file)
--- a/
dbuscron/command.py
+++ b/
dbuscron/command.py
@@
-49,6
+49,10
@@
class Commands(object):
__commands = {}
__environ = {}
+ def __iter__(self):
+ for m, c in self.__commands.iteritems():
+ yield m, c
+
def _get_environ(self):
return self.__environ