summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-15 18:33:21 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-15 18:33:21 +0100
commitc1c7e776c3bd9fdd7cad5e0f0387568185ad8358 (patch)
treedbd385d4250d53ec6456119ba57725232ee6ad2a
parentdb983ac3c26a782a54abf59f6e3c6309a773a12a (diff)
Unity: compile a byte regex in order to get proper matching with byte cmdline
Fixes LP: #1526455 (bzr r4054.1.1)
-rwxr-xr-xtools/unity.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/unity.cmake b/tools/unity.cmake
index 9e71a6a32..213f4650f 100755
--- a/tools/unity.cmake
+++ b/tools/unity.cmake
@@ -107,7 +107,7 @@ def process_and_start_unity (verbose, debug_mode, compiz_path, compiz_args, log_
try:
pid_path = os.path.join("/proc", pid)
cmdline = open(os.path.join(pid_path, "cmdline"), "rb").read()
- if re.match(r"^compiz\b", cmdline):
+ if re.match(rb"^compiz\b", cmdline):
compiz_env = open(os.path.join(pid_path, "environ"), "rb").read()
if display in compiz_env:
subprocess.call (["kill", "-9", pid])