Skip to content

Commit

Permalink
fix unescaped slash in regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
yogo1212 authored Jan 3, 2025
1 parent 2d56f83 commit 9932b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/future/backports/test/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9932b24

Please sign in to comment.