summaryrefslogtreecommitdiff
path: root/scss/rule.py
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-09-11 17:13:50 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-09-11 17:13:50 -0700
commite9f85c599871a088f031e3f2c08ff8c2dbf51159 (patch)
treed4238ac23f0d8b6f14b0d7f18e984ef7223d6e43 /scss/rule.py
parent296da4e357601b8531efec2d6ee342fa15d5c84a (diff)
downloadpyscss-e9f85c599871a088f031e3f2c08ff8c2dbf51159.tar.gz
Merge the rule reordering into apply_extends, the one place that needs it.
This allows for storing the rule positions and dependencies outside the rules themselves, so rule.position and rule.dependent_rules are gone. Hurrah.
Diffstat (limited to 'scss/rule.py')
-rw-r--r--scss/rule.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/scss/rule.py b/scss/rule.py
index bd8b878..924d01f 100644
--- a/scss/rule.py
+++ b/scss/rule.py
@@ -141,7 +141,7 @@ class SassRule(object):
metadata, like `@extend` rules and `@media` nesting.
"""
- def __init__(self, source_file, unparsed_contents=None, dependent_rules=None,
+ def __init__(self, source_file, unparsed_contents=None,
options=None, properties=None,
namespace=None,
lineno=0, extends_selectors=frozenset(),
@@ -160,11 +160,6 @@ class SassRule(object):
else:
self.namespace = namespace
- if dependent_rules is None:
- self.dependent_rules = set()
- else:
- self.dependent_rules = dependent_rules
-
if properties is None:
self.properties = []
else: