Remove top-level discord_utils.py duplicate
#34
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#34
Loading…
Reference in New Issue
Block a user
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?
Both files are exactly 251 lines. No production code imports
discord_utilsdirectly (only thehelperspackage). Top-level file is a dead duplicate.PR #62 opened: #62
Fix approach:
discord_utils.py(top-level duplicate)helpers/main.py:from discord_utils import *→from .discord_utils import *(relative import intohelpers/discord_utils.py)helpers.py:from discord_utils import *→from helpers.discord_utils import *Note:
helpers.pyis effectively superseded by thehelpers/package (Python loads the package, not the module), but the import was corrected for consistency.PR #105 addresses this: #105
Deleted the top-level
discord_utils.py(251 lines). Fixedhelpers/main.pyline 36: changedfrom discord_utils import *tofrom .discord_utils import *(relative import within the package). No other live code files had barefrom discord_utils importreferences.