Reapply "Make it 3.9+, but get rid of deprecation warnings"

This reverts commit 65fb46885a.
This commit is contained in:
DarkPhoenix
2024-09-09 23:31:19 +02:00
parent 65fb46885a
commit dd5ab872b1

View File

@@ -17,8 +17,8 @@
# along with pyfa. If not, see <http://www.gnu.org/licenses/>.
# =============================================================================
import importlib.resources
from importlib.resources import files
DEFAULT_DATA = importlib.resources.open_text(__name__, 'defaults.yaml').read()
DEFAULT_HEADER = importlib.resources.open_text(__name__, 'header.yaml').read()
DEFAULT_DATA = files(__name__).joinpath('defaults.yaml').open('r', encoding='utf8').read()
DEFAULT_HEADER = files(__name__).joinpath('header.yaml').open('r', encoding='utf8').read()