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

Draft: utils.py: Remove the (?ms) switch at the start of _glob2re #1426

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Cynical-Optimist
Copy link

See original merge request on GitLab
In GitLab by [Gitlab user @BenjaminSchubert] on Aug 28, 2020, 15:00

The ?ms switch stands for multiline output.

This switch is used nowhere in our codebase.

It also is problematic in multiple places where its use is deprecated since python 3.7,
as now they need to be at the start of an expression, which is not the
case in all the calls to it that we are doing.

If someone wants the same functionality, they should add it explictely
after calling _glob2re

TODO

Still need to add a test to see how BuildStream behaves with split files that have such characters in them

The ?ms switch stands for multiline output.

This switch is used nowhere in our codebase.
It also is problematic in mutliple places where its use is deprecated,
as now they need to be at the start of an expression, which is not the
case in all the calls to it that we are doing.

If someone wants the same functionality, they should add it explictely
after calling _glob2re
@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @BenjaminSchubert] on Aug 28, 2020, 15:01

changed the description

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @BenjaminSchubert] on Aug 29, 2020, 11:58

marked as a Work In Progress

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @BenjaminSchubert] on Aug 29, 2020, 11:58

changed the description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants