diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-07-31 19:07:31 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-07-31 19:07:31 -0700 |
commit | 01f751b241261c8e4247a9a9d3af554f6c5ea7ad (patch) | |
tree | 3ec781dc7fa6a56f4204e886825f9c178a183dc4 /scss/cssdefs.py | |
parent | 3f75ec2517e9b1a2a900406d8b0bce06b7ab29ac (diff) | |
download | pyscss-01f751b241261c8e4247a9a9d3af554f6c5ea7ad.tar.gz |
Remove old unit stuff.
Diffstat (limited to 'scss/cssdefs.py')
-rw-r--r-- | scss/cssdefs.py | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/scss/cssdefs.py b/scss/cssdefs.py index 3c763b6..19af7bf 100644 --- a/scss/cssdefs.py +++ b/scss/cssdefs.py @@ -213,50 +213,6 @@ ZEROABLE_UNITS = frozenset(( 'cm', 'mm', 'in', 'px', 'pt', 'pc', )) -_units_weights = { - 'em': 10, - 'mm': 10, - 'ms': 10, - 'hz': 10, - '%': 100, -} -_conv = { - 'size': { - 'em': 13.0, - 'px': 1.0 - }, - 'length': { - 'mm': 1.0, - 'cm': 10.0, - 'in': 25.4, - 'pt': 25.4 / 72, - 'pc': 25.4 / 6 - }, - 'time': { - 'ms': 1.0, - 's': 1000.0 - }, - 'freq': { - 'hz': 1.0, - 'khz': 1000.0 - }, - 'any': { - '%': 1.0 / 100 - } -} - -# units and conversions -_units = ['em', 'ex', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'deg', 'rad' - 'grad', 'ms', 's', 'hz', 'khz', '%'] -_zero_units = ['em', 'ex', 'px', 'cm', 'mm', 'in', 'pt', 'pc'] # units that can be zeroed -_conv_type = {} -_conv_factor = {} -for t, m in _conv.items(): - for k, f in m.items(): - _conv_type[k] = t - _conv_factor[k] = f -del t, m, k, f - # ------------------------------------------------------------------------------ # Built-in CSS function reference @@ -331,8 +287,6 @@ _expr_glob_re = re.compile(r''' # XXX these still need to be fixed; the //-in-functions thing is a chumpy hack _ml_comment_re = re.compile(r'\/\*(.*?)\*\/', re.DOTALL) _sl_comment_re = re.compile(r'(?<!\burl[(])(?<!\w{2}:)\/\/.*') -_zero_units_re = re.compile(r'\b0(' + '|'.join(map(re.escape, _zero_units)) + r')(?!\w)', re.IGNORECASE) -_zero_re = re.compile(r'\b0\.(?=\d)') _escape_chars_re = re.compile(r'([^-a-zA-Z0-9_])') _interpolate_re = re.compile(r'(#\{\s*)?(\$[-\w]+)(?(1)\s*\})') |