From 5e0053d191791ecd04f06115d4ad6c4c3e603a9c Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 17 Jul 2023 18:12:49 +0200
Subject: [PATCH] Python: remove unnecessary parentheses from if statements

---
 DDDigi/python/dddigi.py | 2 +-
 DDG4/python/DDG4.py     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/DDDigi/python/dddigi.py b/DDDigi/python/dddigi.py
index 80922be74..4e68c842c 100644
--- a/DDDigi/python/dddigi.py
+++ b/DDDigi/python/dddigi.py
@@ -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")
diff --git a/DDG4/python/DDG4.py b/DDG4/python/DDG4.py
index f6ff67f58..afccaa280 100644
--- a/DDG4/python/DDG4.py
+++ b/DDG4/python/DDG4.py
@@ -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")
-- 
GitLab