diff --git a/src/future/backports/test/support.py b/src/future/backports/test/support.py index 6639372b..0ab81fff 100644 --- a/src/future/backports/test/support.py +++ b/src/future/backports/test/support.py @@ -1942,7 +1942,7 @@ def can_xattr(): os.setxattr(fp.fileno(), b"user.test", b"") # Kernels < 2.6.39 don't respect setxattr flags. kernel_version = platform.release() - m = re.match("2.6.(\d{1,2})", kernel_version) + m = re.match(r"2.6.(\d{1,2})", kernel_version) can = m is None or int(m.group(1)) >= 39 except OSError: can = False