summaryrefslogtreecommitdiff
path: root/sqlparse/lexer.py
diff options
context:
space:
mode:
authorSimon Heisterkamp <simon@heisterkamp.dk>2022-12-01 10:42:44 +0000
committerAndi Albrecht <albrecht.andi@gmail.com>2023-01-02 08:54:47 +0100
commit4efdc036623e1586206d7132abf95696953deb9a (patch)
tree31f1b14c039c9a9127b3bbcce94da7abe1508661 /sqlparse/lexer.py
parente0d3928ba69d73ba874ca03ec4395e94cf1ab293 (diff)
downloadsqlparse-4efdc036623e1586206d7132abf95696953deb9a.tar.gz
flake8
Diffstat (limited to 'sqlparse/lexer.py')
-rw-r--r--sqlparse/lexer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py
index 50799df..657177c 100644
--- a/sqlparse/lexer.py
+++ b/sqlparse/lexer.py
@@ -57,7 +57,10 @@ class Lexer(metaclass=_LexerSingletonMetaclass):
def set_SQL_REGEX(self, SQL_REGEX):
"""Set the list of regex that will parse the SQL."""
FLAGS = re.IGNORECASE | re.UNICODE
- self._SQL_REGEX = [(re.compile(rx, FLAGS).match, tt) for rx, tt in SQL_REGEX]
+ self._SQL_REGEX = [
+ (re.compile(rx, FLAGS).match, tt)
+ for rx, tt in SQL_REGEX
+ ]
def add_keywords(self, keywords):
"""Add keyword dictionaries. Keywords are looked up in the same order