summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2016-07-20 09:13:24 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2016-07-20 09:14:32 +0200
commitd9bc0b3cc1777f3a7314ce1f315906de9fffcd17 (patch)
tree144d53e60ba9670fba52341b38e7582f6e9ece26 /sqlparse
parent65a21f54851233b8747b1b28c6ecfcf27233684b (diff)
downloadsqlparse-d9bc0b3cc1777f3a7314ce1f315906de9fffcd17.tar.gz
Cleanup: Don't redefine underscore.
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/filters/aligned_indent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/filters/aligned_indent.py b/sqlparse/filters/aligned_indent.py
index 2fea4d2..68a2d12 100644
--- a/sqlparse/filters/aligned_indent.py
+++ b/sqlparse/filters/aligned_indent.py
@@ -67,7 +67,7 @@ class AlignedIndentFilter(object):
offset_ = len('case ') + len('when ')
cases = tlist.get_cases(skip_ws=True)
# align the end as well
- _, end_token = tlist.token_next_by(m=(T.Keyword, 'END'))
+ end_token = tlist.token_next_by(m=(T.Keyword, 'END'))[1]
cases.append((None, [end_token]))
condition_width = [len(' '.join(map(text_type, cond))) if cond else 0