summaryrefslogtreecommitdiff
path: root/sqlparse/engine
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/engine
parent954ba46e16af4e3c9b1302bbae95ebf2a4be2a8b (diff)
downloadsqlparse-997f95b8b6ec5129362dcfe5deedaf50800e3afc.tar.gz
Change argument order to match order of all other functions
Diffstat (limited to 'sqlparse/engine')
-rw-r--r--sqlparse/engine/grouping.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py
index bf76119..86c4bf2 100644
--- a/sqlparse/engine/grouping.py
+++ b/sqlparse/engine/grouping.py
@@ -195,7 +195,8 @@ def group_comments(tlist):
token = tlist.token_next_by(t=T.Comment)
while token:
end = tlist.token_not_matching(
- tlist.token_index(token) + 1, lambda tk: imt(tk, t=T.Comment) or tk.is_whitespace())
+ lambda tk: imt(tk, t=T.Comment) or tk.is_whitespace(),
+ idx=tlist.token_index(token) + 1)
if end is not None:
end = tlist.token_prev(tlist.token_index(end), False)
token = tlist.group_tokens_between(sql.Comment, token, end)