From 1b3d761e5b8107523c4d1802259b71fe2eeb06bc Mon Sep 17 00:00:00 2001
From: Dan Guest <dguest@cern.ch>
Date: Wed, 16 Aug 2023 17:25:19 +0200
Subject: [PATCH] remove deprecation on __call__, again

---
 Control/AthenaConfiguration/python/AthConfigFlags.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/Control/AthenaConfiguration/python/AthConfigFlags.py b/Control/AthenaConfiguration/python/AthConfigFlags.py
index a780eb12579c..ea39146a4427 100644
--- a/Control/AthenaConfiguration/python/AthConfigFlags.py
+++ b/Control/AthenaConfiguration/python/AthConfigFlags.py
@@ -5,12 +5,6 @@ from difflib import get_close_matches
 import importlib
 from AthenaCommon.Logging import logging
 from PyUtils.moduleExists import moduleExists
-try:
-    from PyUtils.Decorators import deprecate
-except ModuleNotFoundError:
-    # define a noop decorator for now
-    def deprecate(*args, **kwargs):
-        return lambda x: x
 
 _msg = logging.getLogger('AthConfigFlags')
 
@@ -351,7 +345,6 @@ class AthConfigFlags(object):
             raise KeyError(f"No flag with name '{name}' found" +
                            (f". Did you mean '{closestMatch[0]}'?" if closestMatch else ""))
 
-    @deprecate("Use '[...]' rather than '(...)' to access flags", print_context=True)
     def __call__(self,name):
         return self._get(name)
 
-- 
GitLab