dbapi.py
changeset 7650 278fe9c1f3ad
parent 7595 83872394b5d9
child 7665 0cd299c16f12
--- a/dbapi.py	Tue Jul 12 10:36:22 2011 +0200
+++ b/dbapi.py	Tue Jul 12 11:27:42 2011 +0200
@@ -677,11 +677,10 @@
     @check_not_closed
     def describe(self, eid, asdict=False):
         metas = self._repo.describe(self.sessionid, eid, **self._txid())
+        if len(metas) == 3: # backward compat
+            metas = list(metas)
+            metas.append(metas[1])
         if asdict:
-            if len(metas) == 3:
-                d = dict(zip(('type', 'source', 'extid'), metas))
-                d['asource'] = d['source']
-                return d
             return dict(zip(('type', 'source', 'extid', 'asource'), metas))
         # XXX :-1 for cw compat, use asdict=True for full information
         return metas[:-1]