rset.py
branchstable
changeset 9281 49a7392bb5b5
parent 8695 358d8bed9626
child 9331 c6f54ed6b60a
--- a/rset.py	Wed Oct 09 16:30:27 2013 +0200
+++ b/rset.py	Wed Oct 09 14:45:36 2013 +0200
@@ -45,7 +45,7 @@
     :param rql: the original RQL query string
     """
 
-    def __init__(self, results, rql, args=None, description=(), rqlst=None):
+    def __init__(self, results, rql, args=None, description=None, rqlst=None):
         self.rows = results
         self.rowcount = results and len(results) or 0
         # original query and arguments
@@ -53,7 +53,7 @@
         self.args = args
         # entity types for each cell (same shape as rows)
         # maybe discarded if specified when the query has been executed
-        self.description = description
+        self.description = description or []
         # parsed syntax tree
         if rqlst is not None:
             rqlst.schema = None # reset schema in case of pyro transfert