Fixed PEP8 issues discovered after pycodestyle gets upgraded.

This commit is contained in:
Akshay Joshi
2020-05-13 17:14:32 +05:30
parent a9a1a975a6
commit 0620fafb6c
2 changed files with 4 additions and 4 deletions

View File

@@ -379,7 +379,7 @@ def suggest_based_on_last_token(token, stmt):
# `SELECT 1 FROM functions WHERE function:`
try:
prev = stmt.get_previous_token(token).value.lower()
if prev in('drop', 'alter', 'create', 'create or replace'):
if prev in ('drop', 'alter', 'create', 'create or replace'):
return (Function(schema=schema, usage='signature'),)
except ValueError:
pass
@@ -511,5 +511,5 @@ def _allow_join(statement):
last_tok = statement.token_prev(len(statement.tokens))[1]
return (
last_tok.value.lower().endswith('join') and
last_tok.value.lower() not in('cross join', 'natural join')
last_tok.value.lower() not in ('cross join', 'natural join')
)