title: replace characters not working in python
body: <p>I am using beautiful soup and I am writing a crawler and have the following code in it:</p>
  
  <pre><code>  print soup.originalEncoding
                  #self.addtoindex(page, soup)
  
  
                  links=soup('a')
              for link in links:
  
                  if('href' in dict(link.attrs)):                   
                      link['href'].replace('..', '')
                      url=urljoin(page, link['href'])
                      if url.find("'") != -1:
                          continue
                      url = url.split('?')[0]
                      url = url.split('#')[0]
                      if url[0:4] == 'http':
                          newpages.add(url)
          pages = newpages
  </code></pre>
  
  <p>The <code>link['href'].replace('..', '')</code> is supposed to fix links that come out as ../contact/orderform.aspx, ../contact/requestconsult.aspx, etc.   However, it is not working.  Links still have the leading ".."  Is there something I am missing?</p>