Skip to content

Commit 65fb468

Browse files
committed
Revert "Make it 3.9+, but get rid of deprecation warnings"
This reverts commit 01354a0.
1 parent fad1e40 commit 65fb468

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-
from importlib.resources import files
20+
import importlib.resources
2121

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()
22+
DEFAULT_DATA = importlib.resources.open_text(__name__, 'defaults.yaml').read()
23+
DEFAULT_HEADER = importlib.resources.open_text(__name__, 'header.yaml').read()
2424

0 commit comments

Comments
 (0)