Skip to content
Snippets Groups Projects
Commit 1c2b49c3 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Silence warning from uproot3

parent 407036f1
No related branches found
No related tags found
No related merge requests found
Pipeline #17562 passed with warnings
......@@ -4,7 +4,10 @@ version = get_distribution(__name__).version
import warnings
warnings.simplefilter(action="ignore", category=FutureWarning) # uproot3
with warnings.catch_warnings():
for warning_category in (FutureWarning, DeprecationWarning):
warnings.simplefilter("ignore", category=warning_category)
import uproot3
from .offline import OfflineReader
from .online import OnlineReader
......
......@@ -16,9 +16,10 @@ Options:
"""
import warnings
warnings.simplefilter(action="ignore", category=FutureWarning)
import uproot3
with warnings.catch_warnings():
for warning_category in (FutureWarning, DeprecationWarning):
warnings.simplefilter("ignore", category=warning_category)
import uproot3
def print_tree(filename):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment