diff options
author | Benjamin Schubert <contact@benschubert.me> | 2020-08-28 13:57:24 +0000 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2020-08-28 13:57:24 +0000 |
commit | c5c4ff506dddf921d1c532b34540b1373f4e878f (patch) | |
tree | 3ecd0dbdc30d555e239964417f6d56d6cb2978a4 | |
parent | 94ee11c0b50c20918a7000afccded4227c0ffd63 (diff) | |
download | buildstream-bschubert/remove-multiline-switch-for-re.tar.gz |
utils.py: Remove the (?ms) switch at the start of _glob2rebschubert/remove-multiline-switch-for-re
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
-rw-r--r-- | src/buildstream/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/utils.py b/src/buildstream/utils.py index 9c6761ccc..f84e016a6 100644 --- a/src/buildstream/utils.py +++ b/src/buildstream/utils.py @@ -1425,7 +1425,7 @@ def _call(*popenargs, terminate=False, **kwargs): # def _glob2re(pat): i, n = 0, len(pat) - res = "(?ms)" + res = "" while i < n: c = pat[i] i = i + 1 |