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

Fix SyntaxWarning for '\w' '\d' in regexes #307

Merged
merged 2 commits into from
Jun 24, 2024

Commits on Jun 22, 2024

  1. Fix SyntaxWarning for '\w' '\d' in regexes

    Use raw string literals for the affected regexes
    
    (venv-flent) $ flent -V
    /path/to/flent/flent/metadata.py:247: SyntaxWarning: invalid escape sequence '\d'
      m = re.search("(qlen|txqueuelen) (\d+)", output)
    /path/to/flent/flent/metadata.py:259: SyntaxWarning: invalid escape sequence '\w'
      m = re.search("Duplex: (\w+)", output)
    Starting Flent 2.1.1+git.6c8dce50 using Python 3.12.4.
    Flent v2.1.1+git.6c8dce50.
    Running on Python 3.12.4 (main, Jun  9 2024, 22:05:49) [GCC 13.2.0].
    No matplotlib found. Plots won't be available.
    No usable Qt version found. GUI won't work.
    ERROR: Missing test name.
    
    Signed-off-by: Vincent Legoll <[email protected]>
    vincele committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    efeac82 View commit details
    Browse the repository at this point in the history
  2. Use raw string literals for all remaining regexes

    Signed-off-by: Vincent Legoll <[email protected]>
    vincele committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    b013fee View commit details
    Browse the repository at this point in the history