Permalink
Browse files

has_key() is deprecated - use 'in'

  • Loading branch information...
1 parent 8ef1b1f commit cab5da6912470ad6714ff18142d18af2f1257210 @brunobord brunobord committed Oct 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Sources/watchdog.py
View
@@ -1215,7 +1215,7 @@ def __init__(self, *services):
map(self.addService, services)
def runnerForRule(self, rule, context, iteration):
- if self.runners.has_key(rule.id):
+ if rule.id in self.runners.keys():
self.logger.err("Previous iteration's rule is still running: %s, you should increase its frequency." % (rule))
return None
else:

0 comments on commit cab5da6

Please sign in to comment.