diff --git a/src/prefs.py b/src/prefs.py index b7c5697f..4f58f2e2 100644 --- a/src/prefs.py +++ b/src/prefs.py @@ -365,9 +365,9 @@ def __init__(self, main_window, page_name): stderr=subprocess.DEVNULL ).decode("utf-8") - lshw_out = re.sub("\A\s*{", "[{", lshw_out) - lshw_out = re.sub("}\s*{", "}, {", lshw_out) - lshw_out = re.sub("}\s*\\n\Z", "}]\n", lshw_out) + lshw_out = re.sub(r"\A\s*{", "[{", lshw_out) + lshw_out = re.sub(r"}\s*{", "}, {", lshw_out) + lshw_out = re.sub(r"}\s*\\n\Z", "}]\n", lshw_out) j = json.loads(lshw_out) except: pass