nsf/termbox — pull request #13 by aleupex (2012-07-29 01:15:52+00:00)
Title: Use Python's with statement in setup.py to write the major version number of Python in src/termboxconfig.pyx

The with statement does the file closing automatically even if there is an exception. It is also good practice.