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

tell: do not lstrip leading formatting #2162

Merged
merged 1 commit into from
Aug 7, 2021
Merged

tell: do not lstrip leading formatting #2162

merged 1 commit into from
Aug 7, 2021

Conversation

dgw
Copy link
Member

@dgw dgw commented Jul 18, 2021

Description

Tin; bugfix to resolve #2157.

Also gets rid of the weird "lingering comma" behavior that that issue describes in passing, as a welcome side effect.

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

Notes

Using a custom/bespoke function to do this for now. As mentioned in #2157, we probably should think about adding formatting-safe string-stripping functions like this and what choose uses to Sopel's API. Core plugins surely aren't the only ones to run into such edge cases with leading/trailing formatting bytes.

Using a custom function to do this for now. We'll want to think about
adding formatting-safe functions like this and what `choose` uses to
Sopel's API, as core plugins surely aren't the only ones to run into
such edge cases with leading/trailing formatting bytes.
@dgw dgw added Medium Priority Bugfix Generally, PRs that reference (and fix) one or more issue(s) labels Jul 18, 2021
@dgw dgw added this to the 7.1.3 milestone Jul 18, 2021
@dgw dgw requested a review from a team July 18, 2021 00:14
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.

Yet another PR that shows why we love pytest.mark.parametrize.

@dgw dgw merged commit 8eee9ab into master Aug 7, 2021
@dgw dgw deleted the tell-stripping branch August 7, 2021 07:30
dgw added a commit that referenced this pull request Aug 7, 2021
tell: do not lstrip leading formatting

Cherry-picked from master: 8eee9ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix Generally, PRs that reference (and fix) one or more issue(s) Medium Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tell: argument splitting/stripping is a bit broken
2 participants