Skip to content

Conversation

@dgw
Copy link
Member

@dgw dgw commented Aug 13, 2020

Description

  • plugin.action_commands is now plugin.action_command
  • plugin.commands is now plugin.command
  • plugin.nickname_commands is now plugin.nickname_command

The legacy imports in sopel.module have the old names preserved by using the as keyword.

Should be the last thing we need to do for #1619 (except make sure to call out the renames when writing the changelog for 7.1). I did a manual find-and-replace in all files to rename all Sphinx references to these decorators, but the small number of changes it turned up made me suspicious and I'd love a second set of eyes to double-check those. Yes, even though I also went through and reviewed all ~600 matches of "commands" in the source code & doc files.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

dgw added 2 commits August 12, 2020 11:12
* `plugin.action_commands` is now `plugin.action_command`
* `plugin.commands` is now `plugin.command`
* `plugin.nickname_commands` is now `plugin.nickname_command`

The legacy imports in `sopel.module` have the old names preserved by
using the `as` keyword.
@dgw dgw added the Tweak label Aug 13, 2020
@dgw dgw added this to the 7.1.0 milestone Aug 13, 2020
@dgw dgw requested a review from a team August 13, 2020 05:12
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! 🥳

@dgw dgw assigned dgw and unassigned dgw Aug 13, 2020
@dgw
Copy link
Member Author

dgw commented Aug 13, 2020

(Today I learned that it's possible to minimize browser windows to the system tray by accident. So that was fun.)

@dgw dgw merged commit 5525ed2 into master Aug 28, 2020
@dgw dgw deleted the 1619-renames branch August 28, 2020 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants