summaryrefslogtreecommitdiff
path: root/sqlparse/sql.py
diff options
context:
space:
mode:
authorVictor Uriarte <victor.m.uriarte@intel.com>2016-06-13 10:50:58 -0700
committerVictor Uriarte <victor.m.uriarte@intel.com>2016-06-14 03:28:26 -0700
commit997f95b8b6ec5129362dcfe5deedaf50800e3afc (patch)
tree47d8ca13b04d383c5280548927bd2c1489c51f41 /sqlparse/sql.py
parent954ba46e16af4e3c9b1302bbae95ebf2a4be2a8b (diff)
downloadsqlparse-997f95b8b6ec5129362dcfe5deedaf50800e3afc.tar.gz
Change argument order to match order of all other functions
Diffstat (limited to 'sqlparse/sql.py')
-rw-r--r--sqlparse/sql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlparse/sql.py b/sqlparse/sql.py
index 027228d..e0ac81d 100644
--- a/sqlparse/sql.py
+++ b/sqlparse/sql.py
@@ -269,12 +269,12 @@ class TokenList(Token):
funcs = lambda tk: imt(tk, i, m, t)
return self._token_matching(funcs, idx, end)
- def token_not_matching(self, idx, funcs):
+ def token_not_matching(self, funcs, idx):
funcs = (funcs,) if not isinstance(funcs, (list, tuple)) else funcs
funcs = [lambda tk: not func(tk) for func in funcs]
return self._token_matching(funcs, idx)
- def token_matching(self, idx, funcs):
+ def token_matching(self, funcs, idx):
return self._token_matching(funcs, idx)
def token_idx_prev(self, idx, skip_ws=True):