Skip to content

Commit

Permalink
[XPOG] [PY312] String formating to fix SyntaxWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Sep 23, 2024
1 parent da4ed04 commit 962a907
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def eval(self, expr):
# remove useless warning about EvalInstance()
import warnings
warnings.filterwarnings(action='ignore', category=RuntimeWarning,
message='creating converter for unknown type "const char\*\*"$')
message='creating converter for unknown type "const char\\*\\*"$')
warnings.filterwarnings(action='ignore', category=RuntimeWarning,
message='creating converter for unknown type "const char\*\[\]"$')
message='creating converter for unknown type "const char\\*\\[\\]"$')
if expr not in self._tree._exprs:
formula = ROOT.TTreeFormula(expr, expr, self._tree)
if formula.IsInteger():
Expand Down

0 comments on commit 962a907

Please sign in to comment.