~corey.bryant/ubuntu/utopic/python-pyscss/mir

« back to all changes in this revision

Viewing changes to scss/functions/core.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-09-24 21:54:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20140924215424-w783ydwvtq9yc5jy
Tags: 1.2.1-0ubuntu1
* New upstream point release, resolving compilation failures for
  bootstrap >= 3.2.0 (LP: #1370137).
* d/p/python-3.2-six.u.patch: Dropped, causes exceptions decoding Unicode
  characters and is not required for Ubuntu 14.10 (LP: #1373605).
* d/control,rules: Add python{3}-{pytest,pil} to Build-Depends, execute test
  suite during package build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
import logging
9
9
import math
10
10
 
11
 
import six
12
 
 
13
11
from six.moves import xrange
14
12
 
15
13
from scss.functions.library import FunctionLibrary
223
221
@register('ie-hex-str', 1)
224
222
def ie_hex_str(color):
225
223
    c = Color(color).value
226
 
    return String(six.u('#%02X%02X%02X%02X') % (round(c[3] * 255), round(c[0]), round(c[1]), round(c[2])))
 
224
    return String(u'#%02X%02X%02X%02X' % (round(c[3] * 255), round(c[0]), round(c[1]), round(c[2])))
227
225
 
228
226
 
229
227
# ------------------------------------------------------------------------------