def _is_complete(sql):
    # A complete command is an sql statement that ends with a semicolon, unless
    # there's an open quote surrounding it, as is common when writing a
    # CREATE FUNCTION command
    return sql.endswith(';') and not is_open_quote(sql)
dataset/ETHPy150Open dbcli/pgcli/pgcli/pgbuffer.py/_is_complete/original