[repoapi] Avoid deprecation warnings from session.id
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 05 Mar 2014 11:22:20 +0100
changeset 9575 754904ac4248
parent 9574 2d4c4842bd04
child 9576 5d4f662f5e31
[repoapi] Avoid deprecation warnings from session.id Apparently it's called session.sessionid now.
repoapi.py
--- a/repoapi.py	Tue Feb 18 15:26:22 2014 +0100
+++ b/repoapi.py	Wed Mar 05 11:22:20 2014 +0100
@@ -174,7 +174,7 @@
         if self._autoclose_session:
             # we have to call repo.close to ensure the repo properly forgets the
             # session; calling session.close() is not enough :-(
-            self._session.repo.close(self._session.id)
+            self._session.repo.close(self._session.sessionid)
 
 
     # begin silly BC
@@ -351,7 +351,7 @@
     @ property
     @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one')
     def sessionid(self):
-        return self._session.id
+        return self._session.sessionid
 
     @property
     @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one')