diff options
Diffstat (limited to 'conductor/conductor/common/threshold.py')
-rw-r--r-- | conductor/conductor/common/threshold.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conductor/conductor/common/threshold.py b/conductor/conductor/common/threshold.py index 4ab81fd..0ebbb49 100644 --- a/conductor/conductor/common/threshold.py +++ b/conductor/conductor/common/threshold.py @@ -67,7 +67,7 @@ class Threshold(object): if base_unit not in self.UNITS: raise ThresholdException( "Base unit {} unsupported, must be one of: {}".format( - base_unit, ', '.join(self.UNITS.keys()))) + base_unit, ', '.join(list(self.UNITS.keys())))) # Python 3 Conversion -- dict object to list object self._expression = expression self._base_unit = base_unit @@ -80,7 +80,7 @@ class Threshold(object): def _all_units(self): """Returns a single list of all supported units""" - unit_lists = [self.UNITS[k].keys() for k in self.UNITS.keys()] + unit_lists = [list(self.UNITS[k].keys()) for k in list(self.UNITS.keys())] # Python 3 Conversion -- dict object to list object return list(itertools.chain.from_iterable(unit_lists)) def _default_for_base_unit(self, base_unit): |