diff options
author | German M. Bravo <german.mb@deipi.com> | 2014-09-22 13:51:01 -0500 |
---|---|---|
committer | German M. Bravo <german.mb@deipi.com> | 2014-09-22 13:51:01 -0500 |
commit | 4cc629660f67919853a96181133829cbe7cf6fe3 (patch) | |
tree | eb4804911f09be5ed05c1ab955a027400e213bd7 /scss | |
parent | 03d6076c1dc251cfffd75fcea715722c1cbaf49c (diff) | |
download | pyscss-4cc629660f67919853a96181133829cbe7cf6fe3.tar.gz |
Scanner using frozensets
Diffstat (limited to 'scss')
-rw-r--r-- | scss/grammar/scanner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/grammar/scanner.py b/scss/grammar/scanner.py index 9fae657..aef5b58 100644 --- a/scss/grammar/scanner.py +++ b/scss/grammar/scanner.py @@ -145,7 +145,7 @@ class Parser(object): """ Returns the matched text, and moves to the next token """ - tok = self._scanner.token(self._pos, set([type])) + tok = self._scanner.token(self._pos, frozenset([type])) self._char_pos = tok[0] if tok[2] != type: raise SyntaxError("SyntaxError[@ char %s: %s]" % (repr(tok[0]), "Trying to find " + type)) |