diff options
author | German M. Bravo <german.mb@deipi.com> | 2013-10-06 12:58:08 -0500 |
---|---|---|
committer | German M. Bravo <german.mb@deipi.com> | 2013-10-06 12:58:08 -0500 |
commit | 849cd777e848970b6fad14dc8856ff82e64ad6ab (patch) | |
tree | a531bc7eb3cc3ad19ed861f9c9da571a19cfc451 | |
parent | 431a1d1471de6d86dd8cdf66924a606fea0df60e (diff) | |
download | pyscss-849cd777e848970b6fad14dc8856ff82e64ad6ab.tar.gz |
PEP 8 cleanups
-rw-r--r-- | scss/selector.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scss/selector.py b/scss/selector.py index 25d32fe..3c01eb8 100644 --- a/scss/selector.py +++ b/scss/selector.py @@ -20,8 +20,7 @@ import re # combinator -- i.e., it is a descendant of the root element. # TODO `*html` is incorrectly parsed as a single selector # TODO this oughta be touched up for css4 selectors -SELECTOR_TOKENIZER = re.compile( -r''' +SELECTOR_TOKENIZER = re.compile(r''' # Colons introduce pseudo-selectors, sometimes with parens # TODO doesn't handle quoted ) [:]+ [-\w]+ (?: [(] .+? [)] )? @@ -243,13 +242,13 @@ class Selector(object): SimpleSelector(pending['combinator'], pending['tokens'])) pending['combinator'] = ' ' pending['tokens'] = [] + def promote_selector(): promote_simple() if pending['simples']: ret.append(cls(pending['simples'])) pending['simples'] = [] - pos = 0 while pos < len(selector): # TODO i don't think this deals with " + " correctly. anywhere. |