summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@posteo.nl>2024-08-03 14:23:57 +0200
committerNicky <nicky.dasmijn@posteo.nl>2024-08-03 14:23:57 +0200
commit6cd306e9bf3698551beb70ec6ddfde7f6cec12bd (patch)
tree98ed3a531a1e364e4f542ae791d9211ce29f0956 /indra/newview
parent9c4b6a04166c0053b147f9064056a50644be4d6b (diff)
Use python raw string literals to remove any ambiguity with standard escape sequences like \n
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/viewer_manifest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 6be43f0021..d94bdc31d2 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -277,13 +277,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)