Skip to content

Commit

Permalink
Fix syntax warnings at startup.
Browse files Browse the repository at this point in the history
This fixes warnings when you run `armi` on the CLI:

(armi) :~/code/armi$ armi
/home/nick/code/armi/armi/settings/settingsValidation.py:781: SyntaxWarning: invalid escape sequence '\d'
  fullV = "\d+\.\d+\.\d+"
/home/nick/code/armi/armi/settings/settingsValidation.py:782: SyntaxWarning: invalid escape sequence '\d'
  medV = "\d+\.\d+"
/home/nick/code/armi/armi/settings/settingsValidation.py:783: SyntaxWarning: invalid escape sequence '\d'
  minV = "\d+"
  • Loading branch information
ntouran committed Oct 25, 2024
1 parent d69ca90 commit e88d9eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions armi/settings/settingsValidation.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,9 @@ def validateVersion(versionThis: str, versionRequired: str) -> bool:
bool
Does this version match the version in the Settings file/object?
"""
fullV = "\d+\.\d+\.\d+"
medV = "\d+\.\d+"
minV = "\d+"
fullV = r"\d+\.\d+\.\d+"
medV = r"\d+\.\d+"
minV = r"\d+"

if versionRequired == "uncontrolled":
# This default flag means we don't want to check the version.
Expand Down

0 comments on commit e88d9eb

Please sign in to comment.