Need help capturing output of

John Machin sjmachin at
Fri Jun 27 02:12:45 CEST 2008

On Jun 27, 10:01 am, joemacbusin... at wrote:
> >You may like to read this:
> This is a good resource.  Thank you.
> Someone else pointed out that I needed to change the
> if reCheck == "None":
> to
> if reCheck == None:   # removed the "s

"Somebody else" should indeed remain anonymous if they told you that.
   if reCheck is None:
or even better:
   if not reCheck:

It's not obvious from your response if you got these points:
(1) re.match, not
(2) filename.startswith does your job simply and more understandably

More information about the Python-list mailing list