Skip to content

Commit

Permalink
Merge pull request #19885 from kpedro88/ExtendPythonToCpp
Browse files Browse the repository at this point in the history
make edmPythonConfigToCppValidation work with everything in Modules.py
  • Loading branch information
cmsbuild committed Jul 25, 2017
2 parents 3b3a9c0 + dabb872 commit b612170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FWCore/ParameterSet/scripts/edmPythonConfigToCppValidation
@@ -1,6 +1,6 @@
#! /usr/bin/env python

from FWCore.ParameterSet.Modules import _Module
from FWCore.ParameterSet.Modules import _TypedParameterizable
from FWCore.ParameterSet.Mixins import _ValidatingParameterListBase
import FWCore.ParameterSet.Config as cms

Expand Down Expand Up @@ -243,7 +243,7 @@ for item in config.iterkeys():
if item.startswith('_'):
continue

if isinstance(config[item], _Module):
if isinstance(config[item], _TypedParameterizable):
modules[item] = config[item]

if not modules:
Expand Down

0 comments on commit b612170

Please sign in to comment.