saltstack/salt — pull request #4838 by cvrebert (2013-05-05 05:33:36+00:00)
Title: improve modules.kmod.mod_list()

* avoid file.readlines()
* use `with` statement to ensure file gets closed
* rename `file` var to avoid unnecessary shadowing of built-in type