Message: 3
Date: Sun, 1 Apr 2007 16:42:56 +0100
From: Alan Gauld [EMAIL PROTECTED]
Subject: Re: [Tutor] Tutor Digest, Vol 38, Issue 1
To: tutor@python.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; format=flowed; charset=iso-8859-1;
reply-type=original
Rikard
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, PLEASE shorten your posts by removing all unnecessary quoting.
On 4/5/07, 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.
That's because you assume the linefeeds to