Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

fix bad decorator call (print_timing) by using *args and **kwargs #102

merged 1 commit into from Dec 3, 2012


None yet
2 participants

hrbonz commented Dec 3, 2012

When trying the django example with file compilation there is an error about a wrapper function :

>>> import scss
Scanning acceleration disabled (_speedups not found)!
>>> scss.Scss().compile(scss_file='base.css.scss')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: wrapper() got an unexpected keyword argument 'scss_file'

This is caused by the print_timing decorator, the wrapper function does not accept **kwargs so it will fail dealing with the `scss_file='base.css.scss'.

This is fixed here, I also changed *arg for *args which is more "standard".

PS: This problem was reported in issue #42 as well.

Kronuz added a commit that referenced this pull request Dec 3, 2012

Merge pull request #102 from hrbonz/print_timing_decorator
fix bad decorator call (print_timing) by using *args and **kwargs

@Kronuz Kronuz merged commit a857aef into Kronuz:master Dec 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment