summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2013-10-05 09:21:50 -0500
committerGerman M. Bravo <german.mb@deipi.com>2013-10-05 09:21:50 -0500
commitaac6ceb28464c98199a0bd941e6db71724fd70ae (patch)
treeec76b2a071b73f922bf6d11b109d3466ed626230
parent0352cf6f90d34554eb7b89cc44eb5836105a6e4b (diff)
downloadpyscss-aac6ceb28464c98199a0bd941e6db71724fd70ae.tar.gz
Added __repr__ to RuleAncestry
-rw-r--r--scss/rule.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scss/rule.py b/scss/rule.py
index 8535959..fa28956 100644
--- a/scss/rule.py
+++ b/scss/rule.py
@@ -331,6 +331,9 @@ class RuleAncestry(object):
def __init__(self, headers=()):
self.headers = tuple(headers)
+ def __repr__(self):
+ return "<%s %r>" % (type(self).__name__, self.headers)
+
def __len__(self):
return len(self.headers)