mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 12:43:05 +02:00
Use the C tokenizer for tinycss
This commit is contained in:
parent
0ddded708e
commit
9254dfeb0d
1 changed files with 2 additions and 1 deletions
|
|
@ -212,4 +212,5 @@ def tokenize_grouped(css_source, ignore_comments=True):
|
|||
except (ImportError, RuntimeError):
|
||||
c_tokenize_flat = None
|
||||
else:
|
||||
c_tokenize_flat = lambda s, ignore_comments=False:tok.tokenize_flat(s, ignore_comments)
|
||||
# Use the c tokenizer by default
|
||||
c_tokenize_flat = tokenize_flat = lambda s, ignore_comments=False:tok.tokenize_flat(s, ignore_comments)
|
||||
|
|
|
|||
Loading…
Reference in a new issue