Skip to content

Commit

Permalink
Merge pull request #26427 from davidlange6/pset_190410
Browse files Browse the repository at this point in the history
add bool method to cms.Bool
  • Loading branch information
cmsbuild committed Apr 10, 2019
2 parents 5dc4257 + ad0ff87 commit 7cd3400
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FWCore/ParameterSet/python/Types.py
Expand Up @@ -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):
Expand Down

0 comments on commit 7cd3400

Please sign in to comment.