diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-08-21 15:30:01 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-08-21 15:30:01 -0700 |
commit | d1de124c090662c515939cb8032651442aaf32af (patch) | |
tree | 8a6c82078ffff36a91cd0a2f4d3980efa3e4b8b0 | |
parent | 93385fec068470e50a7d6f67aaa13098dc2826b6 (diff) | |
download | pyscss-d1de124c090662c515939cb8032651442aaf32af.tar.gz |
Fix @wrap_python_function to handle complex units.
-rw-r--r-- | scss/types.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scss/types.py b/scss/types.py index 870f479..8ab300e 100644 --- a/scss/types.py +++ b/scss/types.py @@ -436,7 +436,10 @@ class Number(Value): # TODO enforce no units for trig? python_arg = sass_arg.value python_ret = fn(python_arg) - sass_ret = cls(python_ret, unit=sass_arg.unit) + sass_ret = cls( + python_ret, + unit_numer=sass_arg.unit_numer, + unit_denom=sass_arg.unit_denom) return sass_ret return wrapped |