From 65fb46885a53acecc8af57e2b8d14bd93651098e Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Mon, 9 Sep 2024 23:00:24 +0200 Subject: [PATCH] Revert "Make it 3.9+, but get rid of deprecation warnings" This reverts commit 01354a0a8320d0d6a5fd1378e6891bdc4e42687e. --- service/jargon/resources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/jargon/resources.py b/service/jargon/resources.py index 5bdf4f798..0d3ecf871 100644 --- a/service/jargon/resources.py +++ b/service/jargon/resources.py @@ -17,8 +17,8 @@ # along with pyfa. If not, see . # ============================================================================= -from importlib.resources import files +import importlib.resources -DEFAULT_DATA = files(__name__).joinpath('defaults.yaml').open('r', encoding='utf8').read() -DEFAULT_HEADER = files(__name__).joinpath('header.yaml').open('r', encoding='utf8').read() +DEFAULT_DATA = importlib.resources.open_text(__name__, 'defaults.yaml').read() +DEFAULT_HEADER = importlib.resources.open_text(__name__, 'header.yaml').read()