We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40c830f commit 504fc1eCopy full SHA for 504fc1e
1 file changed
src/mavedb/logging/config.py
@@ -1,14 +1,14 @@
1
import os
2
+from importlib.resources import files
3
4
import yaml
-from pkg_resources import resource_stream
5
6
7
def load_stock_config(name="default"):
8
"""
9
Loads a built-in stock logging configuration based on *name*.
10
11
- with resource_stream(__package__, f"configurations/{name}.yaml") as file:
+ with files(__package__, f"configurations/{name}.yaml").open("r") as file:
12
return load_config(file)
13
14
0 commit comments