[PATCH cubicweb V2] [rql] Store selected variables for RQL select queries in ResultSet

Nicolas Chauvat nicolas.chauvat at logilab.fr
Thu Jul 25 14:03:20 CEST 2019


On Thu, Jul 25, 2019 at 11:16:59AM +0200, Laurent Wouters wrote:
> +        if variables is None:
> +            self.variables = []
> +        else:
> +            self.variables = variables

Which you may want to write:

    self.variables = variables if variables is not None else []

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  



More information about the cubicweb-devel mailing list