Commit e63a6234 by Timothée Peignier

make it work on python 2.6

parent 17fdf1c3
......@@ -8,7 +8,7 @@ CSS_REPLACE = getattr(settings, 'COMPRESS_CSS_URL_REPLACE', [])
class CSSURLReplace(FilterBase):
def filter_css(self, css):
for pattern, repl in CSS_REPLACE.iteritems():
css = re.sub(pattern, repl, css, flags=re.UNICODE | re.IGNORECASE)
css = re.sub(pattern, repl, css)
if self.verbose:
print 'Replaced "%s" with "%s"' % (pattern, repl)
return css
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment