diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2022-04-28 20:31:50 +1200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2022-06-14 07:21:29 +0000 |
commit | 5045382c6dd04b1bae0eaaae823be908213ff079 (patch) | |
tree | d26c9996c2676ce539dc360043f37595994ceab1 /buildtools | |
parent | 45f2e3631e1424f99915a01bdf4808189bd8a6d7 (diff) | |
download | samba-5045382c6dd04b1bae0eaaae823be908213ff079.tar.gz |
python: Don't use deprecated escape sequences
Certain escape sequences are not valid in Python string literals, and
will eventually result in a SyntaxError.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_cross.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_cross.py b/buildtools/wafsamba/samba_cross.py index c6f8c2a0ef2..7ec1edc52ea 100644 --- a/buildtools/wafsamba/samba_cross.py +++ b/buildtools/wafsamba/samba_cross.py @@ -77,7 +77,7 @@ def cross_answer(ca_file, msg): f.close() return (0, ans.strip("'")) else: - m = re.match('\(\s*(-?\d+)\s*,\s*\"(.*)\"\s*\)', ans) + m = re.match(r'\(\s*(-?\d+)\s*,\s*\"(.*)\"\s*\)', ans) if m: f.close() return (int(m.group(1)), m.group(2)) |