diff options
author | German M. Bravo <german.mb@deipi.com> | 2013-10-05 09:21:50 -0500 |
---|---|---|
committer | German M. Bravo <german.mb@deipi.com> | 2013-10-05 09:21:50 -0500 |
commit | aac6ceb28464c98199a0bd941e6db71724fd70ae (patch) | |
tree | ec76b2a071b73f922bf6d11b109d3466ed626230 | |
parent | 0352cf6f90d34554eb7b89cc44eb5836105a6e4b (diff) | |
download | pyscss-aac6ceb28464c98199a0bd941e6db71724fd70ae.tar.gz |
Added __repr__ to RuleAncestry
-rw-r--r-- | scss/rule.py | 3 |
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) |