Fix SyntaxWarning in objects.py (#651)

\( and \) are invalid escape sequences in Python. This can generate warnings.
This commit is contained in:
meator 2024-02-24 00:06:40 +01:00 committed by GitHub
parent 13e9009d5c
commit b4c5276feb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def get_stats():
def get_version():
# snap package
if os.getenv("PKG_MARKER") == "SNAP":
return getoutput("echo \(Snap\) $SNAP_VERSION")
return getoutput(r"echo \(Snap\) $SNAP_VERSION")
# aur package
elif dist_name in ["arch", "manjaro", "garuda"]:
aur_pkg_check = run("pacman -Qs auto-cpufreq > /dev/null", shell=True)