mirror of
https://github.com/dbcli/pgcli.git
synced 2024-10-06 10:17:15 +03:00
token.is_group is now a property, not a method
This commit is contained in:
parent
fe422738e7
commit
dd43364feb
@ -14,7 +14,7 @@ TableReference.ref = property(lambda self: self.alias or (
|
||||
# This code is borrowed from sqlparse example script.
|
||||
# <url>
|
||||
def is_subselect(parsed):
|
||||
if not parsed.is_group():
|
||||
if not parsed.is_group:
|
||||
return False
|
||||
for item in parsed.tokens:
|
||||
if item.ttype is DML and item.value.upper() in ('SELECT', 'INSERT',
|
||||
|
Loading…
Reference in New Issue
Block a user