One line fix replacing file with open.

I wrote the original version of this code. I cannot explain why I used file.
I think I was very sleepy. Yes, that's it, I blame hypnosis.
in Python 3, None < 0 is not a valid test.