diff --git a/FWCore/ParameterSet/python/Types.py b/FWCore/ParameterSet/python/Types.py index a6e34aa6dad82..d1794bef80772 100644 --- a/FWCore/ParameterSet/python/Types.py +++ b/FWCore/ParameterSet/python/Types.py @@ -151,7 +151,8 @@ def insertInto(self, parameterSet, myname): parameterSet.addBool(self.isTracked(), myname, self.value()) def __nonzero__(self): return self.value() - + def __bool__(self): + return self.__nonzero__() class string(_SimpleParameterTypeBase):