summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2016-09-20 13:58:28 +0200
committerGitHub <noreply@github.com>2016-09-20 13:58:28 +0200
commitc65019b9459db3279367be4330c5b4cc559cb56e (patch)
tree035dca6eb18faf8860a1dc4f36dc1318fa624060 /sqlparse
parent433e5a43c645f446ff6f35e8303d73422e5c5e5a (diff)
parenta16326e690d6363b0f191152f7b54dce40648d39 (diff)
downloadsqlparse-c65019b9459db3279367be4330c5b4cc559cb56e.tar.gz
Merge pull request #293 from timgraham/flake8
Fix flake8 warnings.
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/filters/reindent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/filters/reindent.py b/sqlparse/filters/reindent.py
index ab6c00f..ff1b211 100644
--- a/sqlparse/filters/reindent.py
+++ b/sqlparse/filters/reindent.py
@@ -140,7 +140,7 @@ class ReindentFilter(object):
_, ws = tlist.token_next(
tlist.token_index(token), skip_ws=False)
if (ws is not None
- and not ws.ttype is T.Text.Whitespace):
+ and ws.ttype is not T.Text.Whitespace):
tlist.insert_after(
token, sql.Token(T.Whitespace, ' '))
position = 0