[openstack-dev] [Horizon] Problem with compressing scss files

Thomas Goirand zigo at debian.org
Sun Sep 28 07:41:43 UTC 2014


On 09/28/2014 03:35 PM, Thomas Goirand wrote:
> After a long investigation, I have found out that, in python-pyscss,
> there's the following code in scss/expression.py:
> 
>     return String(
>         six.u("%s(%s)" % (func_name, six.u(", ".join(rendered_args)))),
>         quotes=None)
> 
> If I remove the first six.u(), and the code becomes like this:
> 
>     return String(
>         "%s(%s)" % (func_name, six.u(", ".join(rendered_args))),
>         quotes=None)
> 
> then everything works. Though this comes from a Debian specific patch
> for which I added the six.u() calls, to make it work in Python 3.2 in
> Wheezy. The original code is in fact:
> 
>     return String(
>         u"%s(%s)" % (func_name, u", ".join(rendered_args)),
>         quotes=None)
> 
> So, could anyone help me fixing this? What's the way to make it always
> work? I wouldn't like to just drop Python 3.x support because of this... :(

Ooooops, silly me. The parenthesis aren't correct. Fixing it made it all
work. Sorry for the noise, issue closed!

Cheers,

Thomas Goirand (zigo)




More information about the OpenStack-dev mailing list