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

get rid of deprecation warnings #1992

Merged
merged 7 commits into from
Aug 7, 2024
Merged

Conversation

kshtsk
Copy link
Contributor

@kshtsk kshtsk commented Aug 4, 2024

No description provided.

Kyr Shatskyy added 6 commits August 5, 2024 01:05
Address warning message which is going to be an error in future
python versions:

  SyntaxWarning: invalid escape sequence '\w'

Signed-off-by: Kyr Shatskyy <[email protected]>
Get rid of the warning:

    teuthology/util/test/test_scanner.py::TestValgrindScanner::test_scan_all_files
      /Users/kyr/kshtsk/teuthology/teuthology/util/scanner.py:133: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
        if not xml_tree:

Signed-off-by: Kyr Shatskyy <[email protected]>
    teuthology/task/mpi.py:21: SyntaxWarning: invalid escape sequence '\s'
      version = re.search("^\s+Version:\s+(.+)$", version_str, re.MULTILINE).group(1)

Signed-off-by: Kyr Shatskyy <[email protected]>
Fix syntax warning message:

    <unknown>:68: SyntaxWarning: invalid escape sequence '\w'
    teuthology/task/ssh_keys.py:57: SyntaxWarning: invalid escape sequence '\w'
      match = re.match('[\w-]+ {key} \S+@\S+'.format(key=re.escape(ssh_key)), line_to_test)
    teuthology/task/ssh_keys.py:68: SyntaxWarning: invalid escape sequence '\w'
      match = re.match('[\w-]+ \S+ {username}@\S+'.format(username=username), line_to_test)

Signed-off-by: Kyr Shatskyy <[email protected]>
@kshtsk kshtsk requested review from zmc and VallariAg August 4, 2024 23:07
Python 3.10 doesn't have datetime.UTC yet as Python 3.12 does

Signed-off-by: Kyr Shatskyy <[email protected]>
Copy link
Member

@zmc zmc left a comment

Choose a reason for hiding this comment

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

Thanks!

@zmc zmc merged commit 1c986e9 into ceph:main Aug 7, 2024
9 checks passed
@kshtsk kshtsk deleted the wip-deprecation-warnings branch August 7, 2024 20:21
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