diff options
| author | Andrii Soldatenko <andrii.soldatenko@ethoos.com> | 2016-12-18 16:44:18 +0200 |
|---|---|---|
| committer | Andrii Soldatenko <andrii.soldatenko@ethoos.com> | 2016-12-18 16:44:18 +0200 |
| commit | 54f9041f2c3cd47643bf4b9183f8cb530caf6313 (patch) | |
| tree | 818e88afdd0e291deb7d8193715337fc9ae81ff0 /tablib/packages/xlwt | |
| parent | f59abe84be6197e8675bc8d04e65ee7b820f4d52 (diff) | |
| download | tablib-54f9041f2c3cd47643bf4b9183f8cb530caf6313.tar.gz | |
Remove LOCALE from str regular expression
Diffstat (limited to 'tablib/packages/xlwt')
| -rw-r--r-- | tablib/packages/xlwt/ExcelFormulaLexer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tablib/packages/xlwt/ExcelFormulaLexer.py b/tablib/packages/xlwt/ExcelFormulaLexer.py index 91d999f..5004d8e 100644 --- a/tablib/packages/xlwt/ExcelFormulaLexer.py +++ b/tablib/packages/xlwt/ExcelFormulaLexer.py @@ -4,7 +4,7 @@ import sys from antlr import EOF, CommonToken as Tok, TokenStream, TokenStreamException import struct import ExcelFormulaParser -from re import compile as recompile, match, LOCALE, UNICODE, IGNORECASE, VERBOSE +from re import compile as recompile, match, UNICODE, IGNORECASE, VERBOSE int_const_pattern = r"\d+\b" @@ -51,7 +51,7 @@ pattern_type_tuples = ( _re = recompile( '(' + ')|('.join([i[0] for i in pattern_type_tuples]) + ')', - VERBOSE+LOCALE+IGNORECASE) + VERBOSE+IGNORECASE) _toktype = [None] + [i[1] for i in pattern_type_tuples] # need dummy at start because re.MatchObject.lastindex counts from 1 |
