Reapply "Make it 3.9+, but get rid of deprecation warnings"
This reverts commit 65fb46885a.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user