Use contextlib for temporary py console overrides
authorCampbell Barton <ideasman42@gmail.com>
Thu, 4 Feb 2016 06:40:02 +0000 (17:40 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 4 Feb 2016 06:40:02 +0000 (17:40 +1100)
commitd8a998ce71f5dafa1f5681158bad8225ca289408
tree30e521fce21ce3962d5f1f1eee034ae012d6afb6
parent0034765208f7b22077fdd75395eb5ebb2aeb8629
Use contextlib for temporary py console overrides

Using context overrides means stdout/stderr overrides can't be left set by accident.
release/scripts/modules/console_python.py