1
1
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:
Darik Gamble 2016-10-26 11:15:02 -04:00
parent fe422738e7
commit dd43364feb

View File

@ -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',