summaryrefslogtreecommitdiff
path: root/tablib/packages
diff options
context:
space:
mode:
authorIuri de Silvio <iurisilvio@gmail.com>2016-12-18 19:08:41 -0200
committerGitHub <noreply@github.com>2016-12-18 19:08:41 -0200
commit7f0b7a0a22281e4f61605e8cec9e50a63170d513 (patch)
treef56027220aabf4841a14094964e6e5ab5384df2b /tablib/packages
parentf59abe84be6197e8675bc8d04e65ee7b820f4d52 (diff)
parentddac443732bbd21511d4ecbbb5b0ab63baed2f1e (diff)
downloadtablib-7f0b7a0a22281e4f61605e8cec9e50a63170d513.tar.gz
Merge pull request #263 from andriisoldatenko/develop
Remove LOCALE from str regular expression
Diffstat (limited to 'tablib/packages')
-rw-r--r--tablib/packages/xlwt/ExcelFormulaLexer.py4
-rw-r--r--tablib/packages/xlwt3/ExcelFormulaLexer.py4
2 files changed, 4 insertions, 4 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
diff --git a/tablib/packages/xlwt3/ExcelFormulaLexer.py b/tablib/packages/xlwt3/ExcelFormulaLexer.py
index 5dc546c..9b6103c 100644
--- a/tablib/packages/xlwt3/ExcelFormulaLexer.py
+++ b/tablib/packages/xlwt3/ExcelFormulaLexer.py
@@ -2,7 +2,7 @@ import sys
from .antlr import EOF, CommonToken as Tok, TokenStream, TokenStreamException
import struct
from . 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"
@@ -49,7 +49,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