Mercurial > hg
comparison tests/test-debugrename.t @ 30537:4b0e6677eed1
ui: use try..finally in configoverride
@contextmanager almost always have their "yield" inside a try..finally
block. This is because if the calling code inside the activated
context manager raises, the code after the "yield" won't get
executed. A "finally" block, however, will get executed in this
scenario.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 26 Nov 2016 09:14:41 -0800 |
parents | 5d9bc49b0b1e |
children | 55c6ebd11cb9 |
comparison
equal
deleted
inserted
replaced
30536:98d7636c4729 | 30537:4b0e6677eed1 |
---|