"Jay Mutter III" <[EMAIL PROTECTED]> wrote
> Whether I attempt to just strip the string or attempt to > > if line.endswith('No.\r'): > line = line.rstrip() > > It doesn't work. Can you try printing the string repr just before the test. Or even the last 6 characters: print repr(line[-6:]) if line.endswith('No: \n') line = line.strip() See if that helps narrow down the cause... > This is an imac running python 2.3.5 under OS-X 10.4.9 Shouldn't make any odds. Weird, Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor