diff --git a/PhysicsTools/PatAlgos/python/tools/trigTools.py b/PhysicsTools/PatAlgos/python/tools/trigTools.py index 4126d1c487cc8..0cbaad9ac6f91 100644 --- a/PhysicsTools/PatAlgos/python/tools/trigTools.py +++ b/PhysicsTools/PatAlgos/python/tools/trigTools.py @@ -152,7 +152,7 @@ def toolCode( self, process ): trigEvtProdMod = getattr( process, triggerEventProducer ) trigEvtProdMod.processName = hltProcess trigEvtProdMod.patTriggerProducer = cms.InputTag( triggerProducer ) - if not path is '': + if path != '': if not hasattr( process, path ): prodPath = cms.Path( trigProdMod + trigEvtProdMod ) setattr( process, path, prodPath )