Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Davide Di Croce
athena
Commits
1b3d761e
Commit
1b3d761e
authored
1 year ago
by
Dan Guest
Browse files
Options
Downloads
Patches
Plain Diff
remove deprecation on __call__, again
parent
0b9a031f
No related branches found
Branches containing commit
Tags
nightly/main/2024-03-05T0301
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Control/AthenaConfiguration/python/AthConfigFlags.py
+0
-7
0 additions, 7 deletions
Control/AthenaConfiguration/python/AthConfigFlags.py
with
0 additions
and
7 deletions
Control/AthenaConfiguration/python/AthConfigFlags.py
+
0
−
7
View file @
1b3d761e
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment