Wow, your tip works like a charm.

Do you personally know of a good tutorial that teaches things like
this? I'd like to read them.

Thanks,

- robo

On Aug 24, 2:54 pm, Boris Samorodov <[EMAIL PROTECTED]> wrote:
> Hi, All!
>
> On Fri, 24 Aug 2007 21:05:07 -0000 robo wrote:
>
> > How would I catch a blank/empty line?
> > I've googled and tried:
> > if not line.strip():
> >   print "skipping blank line"
> >   continue
> > if line.strip() == '':
> >   print "skipping blank line"
> >   continue
>
> I used to do:
> -----
> line = line.strip()
> if len(line) == 0:
>   print "skipping blank line"
> -----
>
> > the script keeps spewing data into the DB, but doesn't seem like its
> > catching blank/empty lines because the print statements aren't
> > executed.
> > What is the appropriate way to catch blank/empty lines?
>
> HTH & WBR
> --
> bsam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to