Skip to content

Commit

Permalink
Update src/pyhf/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Feickert <[email protected]>
  • Loading branch information
kratsg and matthewfeickert authored Mar 23, 2022
1 parent 75bd603 commit d46b82d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyhf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import sys

# importlib.resources.as_file wasn't added until Python 3.9?
# importlib.resources.as_file wasn't added until Python 3.9
# c.f. https://docs.python.org/3.9/library/importlib.html#importlib.resources.as_file
if sys.version_info >= (3, 9):
from importlib import resources
else:
Expand Down

0 comments on commit d46b82d

Please sign in to comment.