setup_qemu_emulator: replace open/close with with_statement
authorGui Chen <gui.chen@intel.com>
Thu, 15 Aug 2013 08:02:23 +0000 (04:02 -0400)
committerGui Chen <gui.chen@intel.com>
Thu, 15 Aug 2013 08:02:23 +0000 (04:02 -0400)
commit8760d7edc9da346c8c8a14facc04d65dcf7e6c9e
tree7985c8adb5f372d92670a3e898073f54312a1c5c
parentad3593e93dbbbf2f797141d0425d1d5f847d6551
setup_qemu_emulator: replace open/close with with_statement

to avoid unexpected IOError caused by open/close

Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/misc.py