Skip to content

Resolve deprecation warnings of regex library#296

Merged
benvanwerkhoven merged 1 commit intoKernelTuner:masterfrom
emmanuel-ferdman:master
May 1, 2025
Merged

Resolve deprecation warnings of regex library#296
benvanwerkhoven merged 1 commit intoKernelTuner:masterfrom
emmanuel-ferdman:master

Conversation

@emmanuel-ferdman
Copy link
Contributor

PR Summary

This small PR resolves deprecation warnings of regex library in Python3.13+ which you can see in the CI logs:

test/test_core.py: 20 warnings
  /Users/runner/work/kernel_tuner/kernel_tuner/kernel_tuner/core.py:944: DeprecationWarning: 'count' is passed as positional argument
    type_list.append(re.sub(r"\s+", " ", match.group(1).strip(), re.S))

test/test_core.py: 19 warnings
  /Users/runner/work/kernel_tuner/kernel_tuner/kernel_tuner/core.py:966: DeprecationWarning: 'count' is passed as positional argument
    sub = re.sub(regex, replace_typename_token, arg_type, re.S)

It also solves a few typos along the way in the same file.

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@sonarqubecloud
Copy link

Copy link
Collaborator

@benvanwerkhoven benvanwerkhoven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for these fixes!

@benvanwerkhoven benvanwerkhoven merged commit a88c087 into KernelTuner:master May 1, 2025
4 checks passed
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