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

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?

Thanks,

- robo


--~--~---------~--~----~------------~-------~--~----~
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