Author Thomas.Waldmann
Recipients Thomas.Waldmann, eryksun, skrah, xtreak
Date 2019-01-24.20:23:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548361410.52.0.507207160807.issue35686@roundup.psfhosted.org>
In-reply-to
Content
https://github.com/borgbackup/borg/pull/4247/files

this is the current code i have for this (it is not as simple there as in the minimal code samples i attached here).

i meanwhile think i can not use a contextmanager there.

do you think this is as good as it gets for this kind of code?

if you all think this is expected behaviour for the python contextmanagers and can't be done better, this issue can be closed.
History
Date User Action Args
2019-01-24 20:23:32Thomas.Waldmannsetrecipients: + Thomas.Waldmann, skrah, eryksun, xtreak
2019-01-24 20:23:30Thomas.Waldmannsetmessageid: <1548361410.52.0.507207160807.issue35686@roundup.psfhosted.org>
2019-01-24 20:23:30Thomas.Waldmannlinkissue35686 messages
2019-01-24 20:23:30Thomas.Waldmanncreate