summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-12 16:07:47 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-12 16:07:47 -0700
commit46e1bb77c28f587b5fb65eb7d3a3b8bd201b96cc (patch)
tree6808bfdab89f335feb03f2806e75ec86b28268a4
parent6823165c72442390ddeef645f4f6c4350cdbcb9a (diff)
downloadpyscss-46e1bb77c28f587b5fb65eb7d3a3b8bd201b96cc.tar.gz
Remove "short_colors".
-rw-r--r--scss/__init__.py6
-rw-r--r--scss/types.py16
2 files changed, 9 insertions, 13 deletions
diff --git a/scss/__init__.py b/scss/__init__.py
index 25fde77..d8d18af 100644
--- a/scss/__init__.py
+++ b/scss/__init__.py
@@ -126,7 +126,6 @@ _default_scss_vars = {
_default_scss_opts = {
'verbosity': config.VERBOSITY,
'compress': 1,
- 'short_colors': 0,
}
_default_search_paths = ['.']
@@ -1096,10 +1095,7 @@ class Scss(object):
# TODO kill this branch
pass
else:
- value = value.render(
- compress=self.scss_opts.get('compress', True),
- short_colors=self.scss_opts.get('short_colors', False),
- )
+ value = value.render(compress=self.scss_opts.get('compress', True))
rule.properties.append((_prop, value))
@print_timing(10)
diff --git a/scss/types.py b/scss/types.py
index 1accf45..d34a8f8 100644
--- a/scss/types.py
+++ b/scss/types.py
@@ -87,7 +87,7 @@ class Value(object):
def __neg__(self):
return String("-" + self.render())
- def render(self, compress=False, short_colors=False):
+ def render(self, compress=False):
return self.__str__()
@@ -113,7 +113,7 @@ class Null(Value):
def __eq__(self, other):
return isinstance(other, Null)
- def render(self, compress=False, short_colors=False):
+ def render(self, compress=False):
return 'null'
@@ -132,7 +132,7 @@ class BooleanValue(Value):
def __bool__(self):
return self.value
- def render(self, compress=False, short_colors=False):
+ def render(self, compress=False):
if self.value:
return 'true'
else:
@@ -353,7 +353,7 @@ class Number(Value):
def is_unitless(self):
return not self.unit_numer and not self.unit_denom
- def render(self, compress=False, short_colors=False):
+ def render(self, compress=False):
if not self.has_simple_unit:
raise ValueError("Can't express compound units in CSS: %r" % (self,))
@@ -476,11 +476,11 @@ class List(Value):
def __getitem__(self, key):
return self.value[key]
- def render(self, compress=False, short_colors=False):
+ def render(self, compress=False):
delim = self.delimiter(compress)
return delim.join(
- item.render(compress=compress, short_colors=short_colors)
+ item.render(compress=compress)
for item in self.value
)
@@ -609,7 +609,7 @@ class Color(Value):
return Color.from_rgb(*new_rgb, alpha=self.alpha)
- def render(self, compress=False, short_colors=False):
+ def render(self, compress=False):
"""Return a rendered representation of the color. If `compress` is
true, the shortest possible representation is used; otherwise, named
colors are rendered as names and all others are rendered as hex (or
@@ -715,7 +715,7 @@ class String(Value):
self.value + other_value,
quotes='"' if self.quotes else None)
- def render(self, compress=False, short_colors=False):
+ def render(self, compress=False):
return self.__str__()