summaryrefslogtreecommitdiff
path: root/scss/util.py
Commit message (Collapse)AuthorAgeFilesLines
* Normalize make_filename_hash() to remove any path within scss (for tests to ↵German M. Bravo2014-09-191-1/+3
| | | | be consistent)
* Several vast improvements to string parsing.Eevee (Alex Munroe)2014-08-291-0/+1
| | | | | | | | | | | | | | | | | | | | - Interpolation is now understood by the parser! It works for barewords, quoted strings, and both forms of URL. - Escaped characters are now understood and translated by the parser as well! - Rendering strings to CSS attempts to escape them correctly, regardless of how they were put together. - The block locator (at least the Python version) is now a little more aware of CSS escaping. Unfortunately there are some problems with the C module in this commit, which I will be promptly fixing. Conflicts: scss/blockast.py
* Win32 / Py3 compatThomas Khyn2014-08-251-1/+1
|
* Merge remote-tracking branch 'Kronuz/master' into compat_winThomas Khyn2014-08-041-2/+2
|\
| * Improved escaping/unescaping and dequoting of stringsGerman M. Bravo2014-07-231-2/+2
| |
* | Fixed make_filename_hash on windowsThomas Khyn2014-06-241-0/+3
|/ | | | | --HG-- branch : compat_win
* Add some unicode_literals, fix some str()s.Eevee (Alex Munroe)2014-03-291-1/+1
|
* Make the internals all use unicode, even on py2.Eevee (Alex Munroe)2014-03-291-0/+6
| | | | | | | | | This was happening on py3 anyway, so might as well try to be Unicode-clean everywhere. The CSS charset detection is not actually implemented yet. Also, speedups are now totally broken on py2. Please hold.
* Fixed a variety of bytes/str errors in Py3, mostly due to images.Eevee (Alex Munroe)2014-03-291-0/+17
|
* Profiler using @wraps decoratorGerman M. Bravo2014-01-131-0/+3
|
* Added memoized getmtime() (using tmemoize decorator). Callable IMAGES_ROOT, ↵German M. Bravo2014-01-131-0/+70
| | | | FONTS_ROOT and STATIC_ROOT could return an empty list
* Simplified ColorValue considerably.Eevee (Alex Munroe)2013-08-091-0/+7
| | | | | | | | | | | | | | | - Rendering now follows Ruby's rules: shortest representation when compressing, otherwise use the original literal, the name, and hex notation in that order. - The old __str__ fallback is gone. - The `types` attribute is no longer needed. - The strange `merge` method is no longer needed. - Got rid of a couple uses of `to_str`, and made it aware of how to render types.
* Python 3 compatibility, at least with syntax and builtins.Eevee (Alex Munroe)2013-08-021-6/+6
| | | | Adds our very first dependency, on `six`.
* Avoid importing pstats unless absolutely necessary.Eevee (Alex Munroe)2013-07-291-1/+1
| | | | | It's packaged separately on Debian for licensing reasons, so may not be available.
* Extend float rounding to 5 digits, to match Ruby sass.Eevee2013-05-231-1/+1
|
* Print timing and profiler moved to the util moduleGerman M. Bravo2013-05-061-0/+65
|
* Moved code around for easier syncingGerman M. Bravo2013-02-151-32/+33
|
* More fixes for _/- equivalence. Fix named arguments.Eevee2013-02-081-0/+7
| | | | | Default arguments for @functions were added to the context as `foo`, but are looked up as `$foo`.
* Break out about half of __init__.py.Eevee2013-02-081-0/+66