summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2014-09-22 13:51:01 -0500
committerGerman M. Bravo <german.mb@deipi.com>2014-09-22 13:51:01 -0500
commit4cc629660f67919853a96181133829cbe7cf6fe3 (patch)
treeeb4804911f09be5ed05c1ab955a027400e213bd7 /scss
parent03d6076c1dc251cfffd75fcea715722c1cbaf49c (diff)
downloadpyscss-4cc629660f67919853a96181133829cbe7cf6fe3.tar.gz
Scanner using frozensets
Diffstat (limited to 'scss')
-rw-r--r--scss/grammar/scanner.py2
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))