Cleanup pylint errors

This commit is contained in:
Thomas Jackson 2015-04-03 18:16:24 -07:00
parent a823299d96
commit 27c62bf046

View File

@ -124,7 +124,6 @@ class CkMinions(object):
except OSError:
return []
def _check_list_minions(self, expr, greedy): # pylint: disable=unused-argument
'''
Return the minions found by looking via a list
@ -287,8 +286,10 @@ class CkMinions(object):
'Range matcher unavailable (unable to import seco.range, '
'module most likely not installed)'
)
if not hasattr(self, '_range'):
self._range = seco.range.Range(self.opts['range_server'])
try:
return range_.expand(expr)
return self._range.expand(expr)
except seco.range.RangeException as exc:
log.error(
'Range exception in compound match: {0}'.format(exc)