mirror of
https://github.com/deepseek-ai/DeepSeek-Prover-V1.5.git
synced 2026-11-05 00:57:20 +00:00
[PR #22] fix: replace deprecated load_module() with exec_module() #16
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-Prover-V1.5#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepSeek-Prover-V1.5/pull/22
Author: @yurekami
Created: 12/25/2025
Status: 🔄 Open
Base:
main← Head:fix-deprecated-load-module📝 Commits (1)
da2a54bfix: replace deprecated load_module() with exec_module()📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
prover/utils.py(+5 -1)📄 Description
Summary
Replace the deprecated
load_module()method with the modernexec_module()approach inprover/utils.py.Problem
The
load_module()method fromimportlib.machinery.SourceFileLoaderhas been deprecated since Python 3.4 and shows aDeprecationWarning:This warning appears when loading config files and will become an error in future Python versions.
Solution
Updated the
load_config()function to use the recommendedexec_module()pattern:Test plan
python3 -m py_compile🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.