diff options
author | fmartian <FredMartian@gmail.com> | 2025-08-17 02:34:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-16 17:34:50 -0700 |
commit | e7c506ba455f32eb8532f5e07bf83419126b5212 (patch) | |
tree | 4f0485e4444fecbea7def23e9dbe9737c040732c | |
parent | 68d3d5cd739693dd0bf42c93c02673e2dd74accc (diff) |
Fix regex strings for Python 3.12+
Python 3.12 and newer does complain about single backslash in strings and is probably going to treat it as an error in some future version. Make the string constant a raw string.
-rwxr-xr-x | indra/newview/viewer_manifest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index cf5e748513..6991e0c8f2 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -273,13 +273,13 @@ class ViewerManifest(LLManifest): # All lines up to and including the first blank line are the file header; skip them lines.reverse() # so that pop will pull from first to last line - while not re.match("\s*$", lines.pop()) : + while not re.match(r"\s*$", lines.pop()) : pass # do nothing # A line that starts with a non-whitespace character is a name; all others describe contributions, so collect the names names = [] for line in lines : - if re.match("\S", line) : + if re.match(r"\S", line) : names.append(line.rstrip()) # It's not fair to always put the same people at the head of the list random.shuffle(names) |