Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit 07812fd

Browse files
bors[bot]peterbe
andcommitted
Merge #1593
1593: correct escape for regex r=mythmon a=peterbe One lesser `DeprecationWarning` can't hurt: ``` /Users/peterbe/dev/MOZILLA/NORMANDY/normandy/normandy/control/views.py:17: DeprecationWarning: invalid escape sequence \. match = re.search("normandy\.(\w+)\.mozaws", hostname, re.I) ``` Co-authored-by: Peter Bengtsson <[email protected]>
2 parents 23f23be + 037265a commit 07812fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

normandy/control/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def index(request):
1414
hostname = request.get_host()
1515

1616
delivery_console_url = delivery_console_urls["prod"]
17-
match = re.search("normandy\.(\w+)\.mozaws", hostname, re.I)
17+
match = re.search(r"normandy\.(\w+)\.mozaws", hostname, re.I)
1818
if match:
1919
env = match.group(1)
2020
if env in delivery_console_urls:

0 commit comments

Comments
 (0)