Skip to content

Commit

Permalink
Fix SyntaxWarning in objects.py (#651)
Browse files Browse the repository at this point in the history
\( and \) are invalid escape sequences in Python. This can generate warnings.
  • Loading branch information
meator committed Feb 23, 2024
1 parent 13e9009 commit b4c5276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_cpufreq/gui/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b4c5276

Please sign in to comment.