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

Radomir Dopieralski openstack at sheep.art.pl
Mon Sep 29 07:18:09 UTC 2014


On 09/28/2014 09:41 AM, Thomas Goirand wrote:
> 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!

By the way, did you consider sending that python 3 patch upstream to the
python-pyscss guys, so that you don't have to apply it manually every
time? They are quite responsive.

-- 
Radomir Dopieralski




More information about the OpenStack-dev mailing list