Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Scott Snyder
athena
Commits
89cdc2b5
Commit
89cdc2b5
authored
5 years ago
by
scott snyder
Committed by
scott snyder
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
AthenaConfiguration: python3 fix
Fix references to func_name/func_code for python3.
parent
f027f528
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#837962
passed
5 years ago
Stage: external
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Control/AthenaConfiguration/python/AthConfigFlags.py
+1
-1
1 addition, 1 deletion
Control/AthenaConfiguration/python/AthConfigFlags.py
Control/AthenaConfiguration/python/ComponentAccumulator.py
+4
-4
4 additions, 4 deletions
Control/AthenaConfiguration/python/ComponentAccumulator.py
with
5 additions
and
5 deletions
Control/AthenaConfiguration/python/AthConfigFlags.py
+
1
−
1
View file @
89cdc2b5
...
...
@@ -239,7 +239,7 @@ class AthConfigFlags(object):
print
(
"
%-15.15s : %30s : %s
"
%
(
"
Category
"
,
"
Generator name
"
,
"
Defined in
"
))
for
name
,
gen
in
sorted
(
six
.
iteritems
(
self
.
_dynaflags
)):
print
(
"
%-15.15s : %30s : %s
"
%
(
name
,
gen
.
func
_name
,
'
/
'
.
join
(
gen
.
func_code
.
co_filename
.
split
(
'
/
'
)[
-
2
:])))
(
name
,
gen
.
_
_name
__
,
'
/
'
.
join
(
six
.
get_function_code
(
gen
)
.
co_filename
.
split
(
'
/
'
)[
-
2
:])))
def
initAll
(
self
):
#Mostly a self-test method
...
...
This diff is collapsed.
Click to expand it.
Control/AthenaConfiguration/python/ComponentAccumulator.py
+
4
−
4
View file @
89cdc2b5
...
...
@@ -15,7 +15,7 @@ import ast
import
collections
import
six
from
UnifyProperties
import
unifySet
from
AthenaConfiguration.
UnifyProperties
import
unifySet
class
ConfigurationError
(
RuntimeError
):
pass
...
...
@@ -138,7 +138,7 @@ class ComponentAccumulator(object):
parent
+=
newseq
algsByName
=
findAllAlgorithmsByName
(
newseq
)
for
name
,
existingAlgs
in
algsByName
.
iteritems
():
for
name
,
existingAlgs
in
six
.
iteritems
(
algsByName
):
startingIndex
=
0
if
name
not
in
self
.
_algorithms
:
firstAlg
,
parent
,
idx
=
existingAlgs
[
0
]
...
...
@@ -402,7 +402,7 @@ class ComponentAccumulator(object):
else
:
self
.
_msg
.
debug
(
"
Merging sequence %s to a sequence %s
"
,
c
.
name
(),
dest
.
name
()
)
algorithmsByName
=
findAllAlgorithmsByName
(
c
)
for
name
,
existingAlgs
in
algorithmsByName
.
iteritems
(
):
for
name
,
existingAlgs
in
six
.
iteritems
(
algorithmsByName
):
startingIndex
=
0
if
name
not
in
self
.
_algorithms
:
firstAlg
,
parent
,
idx
=
existingAlgs
[
0
]
...
...
@@ -436,7 +436,7 @@ class ComponentAccumulator(object):
mergeSequences
(
destSeq
,
other
.
_sequence
)
# Additional checking and updating other accumulator's algorithms list
for
name
,
alg
in
other
.
_algorithms
.
iteritems
(
):
for
name
,
alg
in
six
.
iteritems
(
other
.
_algorithms
):
if
name
not
in
self
.
_algorithms
:
raise
ConfigurationError
(
'
Error in merging. Algorithm {} missing in destination accumulator
'
.
format
(
name
))
other
.
_algorithms
[
name
]
=
self
.
_algorithms
[
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