Use return in CnxSetTracker context manager methods stable
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 12 Jun 2013 12:28:01 +0200
branchstable
changeset 9221 e9a3a22f98b7
parent 9220 3b437196c2d8
child 9222 ec65ca70aac9
Use return in CnxSetTracker context manager methods Just in case.
server/session.py
--- a/server/session.py	Mon Jul 15 11:45:37 2013 +0200
+++ b/server/session.py	Wed Jun 12 12:28:01 2013 +0200
@@ -227,10 +227,10 @@
         self._record = {}
 
     def __enter__(self):
-        self._condition.__enter__()
+        return self._condition.__enter__()
 
     def __exit__(self, *args):
-        self._condition.__exit__(*args)
+        return self._condition.__exit__(*args)
 
     def record(self, txid, cnxset):
         """Inform the tracker that a txid have acquired a cnxset