Skip to content

Commit

Permalink
Python: remove unnecessary parentheses from if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Jul 17, 2023
1 parent 0326fc9 commit 3d02771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DDDigi/python/dddigi.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def loadDDDigi():

# Try to load libglapi to avoid issues with TLS Static
# Turn off all errors from ROOT about the library missing
if('libglapi' not in gSystem.GetLibraries()):
if 'libglapi' not in gSystem.GetLibraries():
orgLevel = ROOT.gErrorIgnoreLevel
ROOT.gErrorIgnoreLevel = 6000
gSystem.Load("libglapi")
Expand Down
2 changes: 1 addition & 1 deletion DDG4/python/DDG4.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def loadDDG4():

# Try to load libglapi to avoid issues with TLS Static
# Turn off all errors from ROOT about the library missing
if('libglapi' not in gSystem.GetLibraries()):
if 'libglapi' not in gSystem.GetLibraries():
orgLevel = ROOT.gErrorIgnoreLevel
ROOT.gErrorIgnoreLevel = 6000
gSystem.Load("libglapi")
Expand Down

0 comments on commit 3d02771

Please sign in to comment.