Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Gaudi
Gaudi
Commits
e734fe8f
Commit
e734fe8f
authored
1 year ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
Drop a Python 2 compatibility hack and fix handling of bool properties in GaudiPython
parent
17830b25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1507
Drop a Python 2 compatibility hack and fix handling of bool properties in GaudiPython
Pipeline
#6361590
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GaudiPython/python/GaudiPython/Bindings.py
+0
-8
0 additions, 8 deletions
GaudiPython/python/GaudiPython/Bindings.py
with
0 additions
and
8 deletions
GaudiPython/python/GaudiPython/Bindings.py
+
0
−
8
View file @
e734fe8f
...
...
@@ -55,10 +55,6 @@ with warnings.catch_warnings():
warnings
.
simplefilter
(
"
ignore
"
)
import
cppyy
if
sys
.
version_info
>=
(
3
,):
# Python 2 compatibility
long
=
int
if
ROOT6WorkAroundEnabled
(
"
ROOT-5478
"
):
# Trigger the loading of GaudiKernelDict
cppyy
.
gbl
.
DataObject
...
...
@@ -316,8 +312,6 @@ class iProperty(object):
value
=
str
(
value
.
toStringProperty
())
elif
hasattr
(
value
,
"
toString
"
):
value
=
str
(
value
.
toString
())
elif
isinstance
(
value
,
long
):
value
=
"
%d
"
%
value
# prevent pending 'L'
else
:
value
=
str
(
value
)
...
...
@@ -979,8 +973,6 @@ class AppMgr(iService):
v
=
v
.
__resolve__
()
if
isinstance
(
v
,
str
):
v
=
repr
(
v
)
# need double quotes
if
isinstance
(
v
,
long
):
v
=
"
%d
"
%
v
# prevent pending 'L'
gbl
.
GaudiPython
.
Helpers
.
setProperty
(
self
.
_svcloc
,
"
.
"
.
join
([
n
,
p
]),
str
(
v
)
)
...
...
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