Commit c00984f9 by Timothée Peignier

remove duplicate functionnality

parent 900fe4b6
import re
from django.conf import settings
from compress.filter_base import FilterBase
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)
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