Commit c7b5387b by David Charbonnier

fix concatenate encoding error

parent 6b694b64
...@@ -5,6 +5,8 @@ import subprocess ...@@ -5,6 +5,8 @@ import subprocess
from itertools import takewhile from itertools import takewhile
from django.utils.encoding import force_unicode
try: try:
from staticfiles import finders from staticfiles import finders
except ImportError: except ImportError:
...@@ -134,7 +136,7 @@ class Compressor(object): ...@@ -134,7 +136,7 @@ class Compressor(object):
output_filename, variant) output_filename, variant)
return "url(%s)" % asset_url return "url(%s)" % asset_url
content = self.read_file(path) content = self.read_file(path)
content = re.sub(URL_DETECTOR, reconstruct, content) content = re.sub(URL_DETECTOR, reconstruct, force_unicode(content))
stylesheets.append(content) stylesheets.append(content)
return '\n'.join(stylesheets) return '\n'.join(stylesheets)
......
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