scikit-learn/scikit-learn — pull request #3074 by msalahi (2014-04-16 19:26:39+00:00)
Title: open iris files with 'with' statement to avoid ResourceWarning

I was occasionally getting "ResourceWarning: unclosed file" warnings when running load_iris(). Moved file reading into 'with' blocks to handle IO stuff.