eval python after read file
<p>I have a problem with eval. My code read a file and then eval file's content. In Python 2.7 this operation is ok, but in python 2.5 is not ok. Is it a problem of encoding? 
This is my code, where self._file_dates is my file:</p>

<pre><code>import string
import datetime
col_file = open(self._file_dates,"r")
    columns_file = col_file.read()
    col = eval(columns_file)
    col_file.close()
</code></pre>

<p>The message error is: <code>invalid syntax (&lt;string&gt;, line 1)</code></p>

<p><code>self._file_dates</code> looks like this:</p>

<pre><code>[[datetime.date(2009, 2, 5), datetime.date(2009, 2, 6), datetime.date(2009, 2, 9)], [datetime.date(2009, 3, 5), datetime.date(2009, 3, 6), datetime.date(2009, 3, 9)]]
</code></pre>
