Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-mtconverter
Commits
7850338f7992
Commit
24de5772
authored
Sep 02, 2009
by
Sylvain Thénault
Browse files
reduce regexp searched text, since this usally occurs at the beginning for the file
parent
1d5b04e4567c
Changes
1
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
7850338f
...
...
@@ -44,7 +44,7 @@ UNICODE_POLICY = 'strict'
CHARSET_DECL_RGX
=
re
.
compile
(
'(?:charset|(?:(?:en)?coding))[=:\s"
\'
]*([^\s"
\'
]*)'
,
re
.
I
|
re
.
S
|
re
.
U
)
CHARSET_DECL_SEARCH_SIZE
=
1024
CHARSET_DECL_SEARCH_SIZE
=
512
CHARDET_MIN_SIZE
=
20
CHARDET_CONFIDENCE_THRESHOLD
=
0.75
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment