mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed PEP8 issues discovered after pycodestyle gets upgraded.
This commit is contained in:
@@ -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')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user