Navigation Menu

Skip to content

Commit

Permalink
has_key() is deprecated - use 'in'
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobord committed Oct 21, 2011
1 parent 8ef1b1f commit cab5da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/watchdog.py
Expand Up @@ -1215,7 +1215,7 @@ def __init__(self, *services):
map(self.addService, services) map(self.addService, services)


def runnerForRule(self, rule, context, iteration): 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)) self.logger.err("Previous iteration's rule is still running: %s, you should increase its frequency." % (rule))
return None return None
else: else:
Expand Down

0 comments on commit cab5da6

Please sign in to comment.