We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c3b858 commit 01354a0Copy full SHA for 01354a0
service/jargon/resources.py
@@ -17,8 +17,8 @@
17
# along with pyfa. If not, see <http://www.gnu.org/licenses/>.
18
# =============================================================================
19
20
-import importlib.resources
+from importlib.resources import files
21
22
-DEFAULT_DATA = importlib.resources.open_text(__name__, 'defaults.yaml').read()
23
-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()
24
0 commit comments