Skip to content

Commit

Permalink
[py2py3] src/python/A/B/C slice 20 - issue #10144 - WIP src
Browse files Browse the repository at this point in the history
  • Loading branch information
mapellidario committed Mar 11, 2021
1 parent 595a993 commit edce8c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/python/WMComponent/RetryManager/RetryManagerPoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
Any parameter can be skipped and the component will use internal defaults.
"""

from future.utils import viewvalues

import datetime
import logging
import threading
Expand Down Expand Up @@ -125,7 +127,7 @@ def __init__(self, config):
self.typePluginsAssoc = getattr(self.config.RetryManager, 'plugins', {})
self.typePluginsAssoc.setdefault('default', 'DefaultRetryAlgo')

for pluginName in self.typePluginsAssoc.values():
for pluginName in viewvalues(self.typePluginsAssoc):
try:
plugin = self.pluginFactory.loadObject(classname=pluginName,
args=config)
Expand Down Expand Up @@ -189,7 +191,7 @@ def processRetries(self, jobs, cooloffType):

transitions = Transitions()
oldstate = '%scooloff' % cooloffType
if oldstate not in transitions.keys():
if oldstate not in transitions:
msg = 'Unknown job type %s' % cooloffType
logging.error(msg)
return
Expand Down

0 comments on commit edce8c2

Please sign in to comment.