diff --git a/Trigger/TrigHypothesis/TrigHLTJetHypo/python/chainDict2jetLabel.py b/Trigger/TrigHypothesis/TrigHLTJetHypo/python/chainDict2jetLabel.py
index e6ae7565ccfc026f9ca2b30d487f6cb5d77fa22c..b534eef021a72a9b9c765eaac2761b5cb86f1f5a 100644
--- a/Trigger/TrigHypothesis/TrigHLTJetHypo/python/chainDict2jetLabel.py
+++ b/Trigger/TrigHypothesis/TrigHLTJetHypo/python/chainDict2jetLabel.py
@@ -4,7 +4,7 @@ from __future__ import absolute_import
 import re
 
 # substrings that cannot occur in any chainPartName for simple chains.
-reject_substr = ( # noqa: W605
+reject_substr = (
     #    'gsc',
     'ion',
     'dphi',
@@ -13,7 +13,7 @@ reject_substr = ( # noqa: W605
     '0i1',
     '1i2',
     'dphi',
-    'agg\d',)
+    r'agg\d',)
 
 reject_substr_res = re.compile(r'%s' % '|'.join(reject_substr))