From 16c753096cd33980d6099fdfd9c81489c25c1c02 Mon Sep 17 00:00:00 2001 From: Keith Mitchell Date: Fri, 13 Jul 2012 11:45:34 -0700 Subject: [PATCH] Use a raw string for the related_replace_regex --- r2/r2/controllers/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/controllers/front.py b/r2/r2/controllers/front.py index 2c474ae73..24c33a1a1 100755 --- a/r2/r2/controllers/front.py +++ b/r2/r2/controllers/front.py @@ -648,7 +648,7 @@ class FrontController(RedditController): return BoringPage(_("awards"), content = UserAwards()).render() # filter for removing punctuation which could be interpreted as search syntax - related_replace_regex = re.compile('[?\\&|!{}+~^()"\':*-]+') + related_replace_regex = re.compile(r'[?\\&|!{}+~^()"\':*-]+') related_replace_with = ' ' @base_listing