diff --git a/common/djangoapps/static_replace/__init__.py b/common/djangoapps/static_replace/__init__.py index c246a37f4d..7d2cff64d3 100644 --- a/common/djangoapps/static_replace/__init__.py +++ b/common/djangoapps/static_replace/__init__.py @@ -23,8 +23,7 @@ def _url_replace_regex(prefix): To anyone contemplating making this more complicated: http://xkcd.com/1171/ """ - return u""" - (?x) # flags=re.VERBOSE + return """(?x) # flags=re.VERBOSE (?P\\\\?['"]) # the opening quotes (?P{prefix}) # the prefix (?P.*?) # everything else in the url