diff options
author | Eevee <eevee.git@veekun.com> | 2013-06-28 13:49:02 -0700 |
---|---|---|
committer | Eevee <eevee.git@veekun.com> | 2013-06-28 13:49:02 -0700 |
commit | 1b9e6b01d0a7400117aabeb548a328cf1624a333 (patch) | |
tree | f2aa68cdeeb145fa75188324fcae76fd00ebe8ef | |
parent | 51dbb14724e289852b35cfdc0fdf9424159e8d48 (diff) | |
download | pyscss-1b9e6b01d0a7400117aabeb548a328cf1624a333.tar.gz |
Remove __hash__ from types.
Never used anywhere, and doesn't seem particularly useful.
-rw-r--r-- | scss/types.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/scss/types.py b/scss/types.py index c574338..35a9691 100644 --- a/scss/types.py +++ b/scss/types.py @@ -102,9 +102,6 @@ class BooleanValue(Value): def __init__(self, value): self.value = bool(value) - def __hash__(self): - return hash(self.value) - def __str__(self): return 'true' if self.value else 'false' @@ -168,9 +165,6 @@ class NumberValue(Value): if type is not None: self.units = {type: _units_weights.get(type, 1), '_': type} - def __hash__(self): - return hash((self.value, frozenset(self.units.items()))) - def __repr__(self): return '<%s: %s, %s>' % (self.__class__.__name__, repr(self.value), repr(self.units)) @@ -379,9 +373,6 @@ class ListValue(Value): if separator: self.value['_'] = separator - def __hash__(self): - return hash((frozenset(self.value.items()))) - @classmethod def _do_op(cls, first, second, op): if isinstance(first, ListValue) and isinstance(second, ListValue): @@ -538,9 +529,6 @@ class ColorValue(Value): return self - def __hash__(self): - return hash((tuple(self.value), frozenset(self.types.items()))) - def __repr__(self): return '<%s: %s, %s>' % (self.__class__.__name__, repr(self.value), repr(self.types)) @@ -648,9 +636,6 @@ class QuotedStringValue(Value): else: self.value = to_str(tokens) - def __hash__(self): - return hash((True, self.value)) - def __str__(self): return str(self.__unicode__()) @@ -701,9 +686,6 @@ class QuotedStringValue(Value): class StringValue(QuotedStringValue): - def __hash__(self): - return hash((False, self.value)) - def __str__(self): return str(self.__unicode__()) |