Ignoring lines while comparing files using Python
<p>I am having two text files which I want to compare using Python. Both of these files are having Date in their header. So, i want to ignore this line while comparison as it will always vary and should not be treated as difference.</p>

<p><strong>File1</strong></p>

<pre><code>Date : 04/29/2013
Some Text
More Text
....
</code></pre>

<p><strong>File2</strong></p>

<pre><code>Date : 04/28/2013
Some Text
More Text
....
</code></pre>

<p>I have tried comparing them using <code>filecmp</code> module, but that doesn't supports any argument to ignore any pattern. Is there any other module which can be used for this purpose. I tried using <code>difflib</code> but was not successfull. Moreover, I just want whether there is difference b/w files as <code>True or False</code>, <code>difflib</code> was printing all the lines even if there was no difference <code>using whitespace</code>.</p>
