diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2017-09-21 10:19:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-21 10:19:57 +0200 |
| commit | 54551c472bdcb92679872b6bcd8348e5542fd2ee (patch) | |
| tree | 356e7c7e9c044c2d35335e0813e1d5428babe876 /sqlparse/utils.py | |
| parent | 4dd31c48c5ef42ea731e0c6a86b99cb3c89f0a6a (diff) | |
| parent | 0dd67c791e0a9fdc29cffdc9d84f811fe124726a (diff) | |
| download | sqlparse-54551c472bdcb92679872b6bcd8348e5542fd2ee.tar.gz | |
Merge branch 'master' into master
Diffstat (limited to 'sqlparse/utils.py')
| -rw-r--r-- | sqlparse/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlparse/utils.py b/sqlparse/utils.py index ee3e982..ffa029b 100644 --- a/sqlparse/utils.py +++ b/sqlparse/utils.py @@ -95,9 +95,9 @@ def imt(token, i=None, m=None, t=None): return False elif clss and isinstance(token, clss): return True - elif mpatterns and any((token.match(*pattern) for pattern in mpatterns)): + elif mpatterns and any(token.match(*pattern) for pattern in mpatterns): return True - elif types and any([token.ttype in ttype for ttype in types]): + elif types and any(token.ttype in ttype for ttype in types): return True else: return False |
