Skip to content

Commit dd5ab87

Browse files
committed
Reapply "Make it 3.9+, but get rid of deprecation warnings"
This reverts commit 65fb468.
1 parent 65fb468 commit dd5ab87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service/jargon/resources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# along with pyfa. If not, see <http://www.gnu.org/licenses/>.
1818
# =============================================================================
1919

20-
import importlib.resources
20+
from importlib.resources import files
2121

22-
DEFAULT_DATA = importlib.resources.open_text(__name__, 'defaults.yaml').read()
23-
DEFAULT_HEADER = importlib.resources.open_text(__name__, 'header.yaml').read()
22+
DEFAULT_DATA = files(__name__).joinpath('defaults.yaml').open('r', encoding='utf8').read()
23+
DEFAULT_HEADER = files(__name__).joinpath('header.yaml').open('r', encoding='utf8').read()
2424

0 commit comments

Comments
 (0)