Closed idanceinbetween closed 4 months ago
Thank you for this. I just patched this in the master, 8.x, and 8.0 branches as well. I have a lot of tech debt with the 7.x branch that is just hanging there.
Thank you for this. I just patched this in the master, 8.x, and 8.0 branches as well. I have a lot of tech debt with the 7.x branch that is just hanging there.
Ah yes, I have just seen it on the later branches. Unfortunately we cannot yet upgrade to 8.0 so would be fab to have at least this patched for 7.x too. Is there anything else that would be useful to get this approved, merged and released?
Hi @untergeek , can this PR be approved please?
Sorry for the long delay. I've been super busy.
No worries - thank you for this!
There is an unescaped character in the docstring of
indexlist
module which has been deprecated since Python 3.6.This causes an issue during
pytest
's test collection phase when running tests on modules that import curator as a library on later versions of Python:"SyntaxError: invalid escape sequence '\d'"
In popular python linters e.g. ruff and flake8 this violates rule W605.
Upon linting the entire source code, this is the only file that has this rule violation. This commit fixes this error.![LintForW605](https://github.com/elastic/curator/assets/46828701/26df5f4f-3485-4ff9-b4bf-21adff152e87)
The change has been tested by modifying a local copy of the library and running my test suite that originally failed against it, and the exception no longer occurs.
Proposed Changes