Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help: invalid pattern in Python 3.11 #2403

Closed
dgw opened this issue Jan 22, 2023 · 3 comments
Closed

help: invalid pattern in Python 3.11 #2403

dgw opened this issue Jan 22, 2023 · 3 comments
Labels
Bug Things to squish; generally used for issues Low Priority
Milestone

Comments

@dgw
Copy link
Member

dgw commented Jan 22, 2023

The old built-in help plugin uses a global regex flag in the middle of a pattern, which is no longer allowed as of Python 3.11:

@plugin.rule('$nick' r'(?i)(help|doc) +([A-Za-z]+)(?:\?+)?$')

Doing this was deprecated in Python 3.6 (scroll to re header, if the link fragment breaks).

The workaround is to install sopel-help from PyPI.

It is an official replacement, extracted from the core bot package and released separately for easier updates. We intend to keep it usable with the older 7.1.x Sopel versions until Sopel 8 is released.

This issue was opened after the offending code had already been removed from Sopel 8, so it could be pinned to the top of our issue list in case anyone had this problem.

@dgw dgw added Bug Things to squish; generally used for issues Low Priority labels Jan 22, 2023
@dgw dgw added this to the 8.0.0 milestone Jan 22, 2023
@dgw dgw pinned this issue Jan 22, 2023
@dgw dgw closed this as completed Jan 22, 2023
@antdude

This comment was marked as off-topic.

@dgw

This comment was marked as off-topic.

@antdude

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Things to squish; generally used for issues Low Priority
Projects
None yet
Development

No branches or pull requests

2 participants