title: with statement yields "Invalid syntax" error in Python 2.4
body: <p>I have some code written in Python 2.7 like so :</p>
  
  <pre><code>if (os.path.exists('/path/to/my/file/somefile.txt')):
          with open('/path/to/my/file/somefile.txt', 'r') as readfile:
                  firstline = readfile.readline()
                  return firstline
  </code></pre>
  
  <p>When I try to run this on a system that has python 2.4, I get and Invalid Syntax error:</p>
  
  <pre><code>with open('/path/to/my/file/somefile.txt', 'r') as readfile:
              ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>What am I doing wrong here?</p>