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
Jay Mutter III [EMAIL PROTECTED] wrote
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()
Alan using your suggestion with the code aove here is the print out: