Skip to content

Commit 504fc1e

Browse files
committed
chore: remove deprecated pkg_resources and replace w stdlib
1 parent 40c830f commit 504fc1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mavedb/logging/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import os
2+
from importlib.resources import files
23

34
import yaml
4-
from pkg_resources import resource_stream
55

66

77
def load_stock_config(name="default"):
88
"""
99
Loads a built-in stock logging configuration based on *name*.
1010
"""
11-
with resource_stream(__package__, f"configurations/{name}.yaml") as file:
11+
with files(__package__, f"configurations/{name}.yaml").open("r") as file:
1212
return load_config(file)
1313

1414

0 commit comments

Comments
 (0)