Change in otopi[master]: core: Updated Transaction _enter_ method
Alon Bar-Lev has submitted this change and it was merged. Change subject: core: Updated Transaction _enter_ method ...................................................................... core: Updated Transaction _enter_ method This patch updates the Transaction class method _enter_ by adding a return of 'self'. This allows using the Transaction object in a context manager in a following way: from otopi import transaction with transaction.Transaction() as mytransaction: mytransaction.<class methods or objects> Change-Id: I83825d6f92e029ba6acec7ab0387a18370a55ee5 Signed-off-by: Alex Lourie <alourie@redhat.com> --- M src/otopi/transaction.py 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: Alon Bar-Lev: Looks good to me, approved Sandro Bonazzola: Verified; Looks good to me, but someone else must approve -- To view, visit http://gerrit.ovirt.org/15343 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I83825d6f92e029ba6acec7ab0387a18370a55ee5 Gerrit-PatchSet: 1 Gerrit-Project: otopi Gerrit-Branch: master Gerrit-Owner: Alex Lourie <alourie@redhat.com> Gerrit-Reviewer: Alon Bar-Lev <alonbl@redhat.com> Gerrit-Reviewer: Sandro Bonazzola <sbonazzo@redhat.com>
participants (1)
-
Alon Bar-Lev