]> mj.ucw.cz Git - eval.git/commit
Add context manager to ConfigTree.parse
authorTomas Gavenciak <gavento@ucw.cz>
Wed, 22 Sep 2010 21:59:52 +0000 (23:59 +0200)
committerTomas Gavenciak <gavento@ucw.cz>
Wed, 22 Sep 2010 21:59:52 +0000 (23:59 +0200)
commitd0add2889335d69d4bb17e8fd962e53dcee207bc
treebd52f0f7339b12f2d3c9061654e854c4adc13e97
parent1ed60150aa8d007acd895d0ab7274ba9eb8b0f2a
Add context manager to ConfigTree.parse

Now we can do:

with parse("..."):
  use modified config
  raise exception

Also adapted one test. Yay!
t/moe/config.py
t/moe/config_test.py