Skip to content
Snippets Groups Projects
Commit 1b3d761e authored by Dan Guest's avatar Dan Guest
Browse files

remove deprecation on __call__, again

parent 0b9a031f
No related branches found
Tags nightly/main/2024-03-05T0301
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment