summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-08 18:56:23 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-08 18:56:23 -0700
commit8abac3c5472798b996aae186565c2f4b9e97039f (patch)
treef3660a0b527eee5d8571bfc7dba305689bc34b83
parent028b73079c221f97f7ff1a9537a88279b8c0b098 (diff)
downloadpyscss-8abac3c5472798b996aae186565c2f4b9e97039f.tar.gz
Restore __div__ on types, for modules without division imported.
-rw-r--r--scss/types.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scss/types.py b/scss/types.py
index 89aa226..b5edcbe 100644
--- a/scss/types.py
+++ b/scss/types.py
@@ -70,6 +70,12 @@ class Value(object):
def __rtruediv__(self, other):
return self._do_op(other, self, operator.__truediv__)
+ def __div__(self, other):
+ return self.__truediv__(other)
+
+ def __rdiv__(self, other):
+ return self.__rtruediv__(other)
+
def __sub__(self, other):
return self._do_op(self, other, operator.__sub__)