Make it 3.9+, but get rid of deprecation warnings

This commit is contained in:
DarkPhoenix
2024-07-09 21:49:05 +02:00
parent 8c3b8589d5
commit 01354a0a83

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()