Skip to content

Commit

Permalink
hls to rgb fix and updated setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dziegler authored and lericson committed Dec 17, 2009
1 parent 4a61e56 commit 63c4b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clevercss.py
Expand Up @@ -452,7 +452,7 @@ def rgb_to_hls(red, green, blue):
def hls_to_rgb(hue, saturation, lightness):
"""Convert HSL back to RGB."""
t = colorsys.hls_to_rgb(hue, saturation, lightness)
return tuple(int(x * 255) for x in t)
return tuple(int(round(x * 255)) for x in t)


class ParserError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -78,7 +78,7 @@
url='http://sandbox.pocoo.org/clevercss/',
py_modules=['clevercss'],
description='funky css preprocessor dammit',
description_full=__doc__,
long_description=__doc__,
classifiers=[
'License :: OSI Approved :: BSD License',
'Programming Language :: Python'
Expand Down

0 comments on commit 63c4b5f

Please sign in to comment.