checking for some extension and it's not working
<p>So i have the following problem, this is not working:</p>

<pre><code>if any(x in pageName for x in ('.jpg','.gif','.txt','pdf','.msi','print'
                                   '.ppt','.pptx','javascript:',
                                       '.xls','#','.xlsx','.doc', 'ftp'
                                '.docx','mailto:','.xml','.tar.gz','.png'
                                )):  
            print pageName
            return []
</code></pre>

<p>And this is working, so what is the problem in my code, any ideas:</p>

<pre><code>if any(x in pageName for x in ('print')):  
        print pageName
        return []
</code></pre>
