Skip to content

Commit d7fd525

Browse files
Replace stdlib-list with sys.stdlib_module_names
1 parent 4f8cf7d commit d7fd525

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

fickling/fickle.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
overload,
1919
)
2020

21-
from stdlib_list import in_stdlib
22-
2321
from fickling.exception import WrongMethodError
2422

2523
T = TypeVar("T")
@@ -34,14 +32,14 @@
3432
GenericSequence = Sequence[T]
3533
make_constant = ast.Constant
3634

37-
BUILTIN_MODULE_NAMES: frozenset[str] = frozenset(sys.builtin_module_names)
35+
BUILTIN_STDLIB_MODULE_NAMES: frozenset[str] = sys.stdlib_module_names
3836

3937
OPCODES_BY_NAME: dict[str, type[Opcode]] = {}
4038
OPCODE_INFO_BY_NAME: dict[str, OpcodeInfo] = {opcode.name: opcode for opcode in opcodes}
4139

4240

4341
def is_std_module(module_name: str) -> bool:
44-
return in_stdlib(module_name) or module_name in BUILTIN_MODULE_NAMES
42+
return module_name in BUILTIN_STDLIB_MODULE_NAMES
4543

4644

4745
class MarkObject:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ classifiers = [
2525
"Topic :: Software Development :: Testing",
2626
"Topic :: Utilities",
2727
]
28-
dependencies = ["stdlib_list ~= 0.11.1"]
2928
requires-python = ">=3.10"
3029

3130
[project.optional-dependencies]

uv.lock

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)