can't catch python EOFError
<p>I read a file which only contains one line. However, I can't stop reading the file until the loop end. i.e. the python doesn't throw EOFError exception. what't wrong with my code?</p>

<pre><code>for x in range(5):
  try:
    line = file.readlines()
  except EOFError:
    break
  print "Line:",line
</code></pre>

<p>The output is:  </p>

<pre><code>Line: ['nice\n']
Line: []
Line: []
Line: []
Line: []
</code></pre>
