<div>I'm a beginner and I was trying to write a program to parse recursively all file names in a directory specified as parameter. The problem is that I get a "None" printed to stdout when a file is positively matched. While when the file name doesn't match the regexp the output seems ok. </div>




<div><br></div><div><div>C:\>c:\python.exe g:\a.py sample</div><div>====> foo - bar.txt , first part is: foo</div><div>None</div><div>skipping: foo.txt</div><div><br></div><div>Instead I expect an output like this one:</div>


<div><br></div><div><div>C:\>c:\python.exe g:\a.py sample</div><div>====> foo - bar.txt , first part is: foo</div><div>None</div><div>skipping: foo.txt</div><div><br></div></div><div>Could anyone help me to figure out why "None" appears in the putput?</div>

</div>

<div><br></div><div>Thanks and regards,</div><div>Ale</div>