diff --git a/Trigger/TriggerCommon/TriggerMenuMT/python/L1/Config/ItemDef.py b/Trigger/TriggerCommon/TriggerMenuMT/python/L1/Config/ItemDef.py index 63cc987b224264e367606745b7a2c59d34fdfa79..accecd09b2630cc7a273478bec61baa466df9193 100644 --- a/Trigger/TriggerCommon/TriggerMenuMT/python/L1/Config/ItemDef.py +++ b/Trigger/TriggerCommon/TriggerMenuMT/python/L1/Config/ItemDef.py @@ -21,6 +21,8 @@ from ..Base.Thresholds import TopoThreshold from ..Base.CTPCondition import ThrCondition, InternalTrigger # noqa: F401 from .TriggerTypeDef import TT +from future.utils import with_metaclass + class ItemDef: @@ -44,7 +46,7 @@ class ItemDef: isHIV5 = 'HI_v5' in menuName isPhaseII = '_PhaseII' in menuName - class d(metaclass=meta_d): pass + class d(with_metaclass(meta_d)): pass # ... and make them accessible by their name for thr in tc.getDefinedThresholds():