<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Stephen R Laniel a écrit :
<blockquote
 cite="mid:20070621133006.GQ6145@slaniel-laptop.itasoftware.com"
 type="cite">
  <pre wrap="">On Thu, Jun 21, 2007 at 06:23:01AM -0700, Nick wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Why is there a apostrophe still at the end?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Is it possible that you actually have whitespace at the end
of the line? So then strip() is looking for an apostrophe at
the end of the line, not finding it, and therefore not
stripping it?

  </pre>
</blockquote>
that should work for you ?
<br>
<br>
f1 = open('in.txt', 'r')
<br>
<br>
for line in f1:
<br>
   print line.rsplit(':')[4].rstrip().strip("'"),
<br>
<br>
maybe you got some \n \r at the end of each line<br>
</body>
</html>