Am 2012-08-03 um 14:57 schrieb Ed Leafe: > On Aug 2, 2012, at 3:42 PM, Henning Hraban Ramm wrote: > >> python2.6/site-packages/dabo-trunk/dabo/db/dbMsSQL.py", line 61 >> return tuple([{col: row[col] for col in row if type(col) != int} >> ^ >> SyntaxError: invalid syntax > > Yes, that looks like the closing brace for the dict is incorrect. > Can you try changing the lines to: > > 61 return tuple([{col: row[col]} for col in row > if type(col) != int > 62 for row in super(ConCursor, > self).fetchall()]) > > ...and let me know if that works?
Thank you, that works. (I.e. I didn’t check if it works with MS SQL, but it’s valid Python again.) Sorry that I didn’t bother to fix/research it myself, I was in a hurry. Greetlings, Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/53775550-96d7-4b64-a34a-ec16a0eb0...@fiee.net