Skip to content

Commit

Permalink
Merge pull request #27454 from Dr15Jones/wmagentSafeParameters
Browse files Browse the repository at this point in the history
cms.optional and obsolete now return None from call to value()
  • Loading branch information
cmsbuild committed Jul 8, 2019
2 parents 2eefe00 + 07fff50 commit 02f77e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FWCore/ParameterSet/python/Types.py
Expand Up @@ -95,6 +95,11 @@ def insertInto(self, parameterSet, myname):
v = self.__dict__.get('_ProxyParameter__value', None)
if v is not None:
v.insertInto(parameterSet,myname)
def value(self):
v = self.__dict__.get('_ProxyParameter__value', None)
if v is not None:
return v.value()
return None

class _ObsoleteParameter(_OptionalParameter):
@staticmethod
Expand Down

0 comments on commit 02f77e0

Please sign in to comment.