cdc092afbf1463fe94f4c907a89b6857935ffbbd,django/dataproviders/DropboxDataProvider.py,HtmlLinkReplacer,replace_a,#HtmlLinkReplacer#Any#Any#Any#,60

Before Change


    
    def replace_a(self,soup,baseURL,currentpath):                
        for a in soup.findAll("a"):
            if a.has_key("href"):
              a["href"] = self.replace_url(a["href"],baseURL,currentpath)        
        return soup
        
    def replace_img(self,soup,baseURL,currentpath):                
        for a in soup.findAll("img"):

After Change


    
    def replace_a(self,soup,baseURL,currentpath):                
        for a in soup.findAll("a"):            
            a = self.fix_url(a,baseURL,currentpath)
        return soup

        
    def replace_img(self,soup,baseURL,currentpath):                
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: comic/grand-challenge.org
Commit Name: cdc092afbf1463fe94f4c907a89b6857935ffbbd
Time: 2013-10-21
Author: w.s.kerkstra@gmail.com
File Name: django/dataproviders/DropboxDataProvider.py
Class Name: HtmlLinkReplacer
Method Name: replace_a


Project Name: comic/grand-challenge.org
Commit Name: 9a92a13569d091b1f47ae89a4ec3a8d07fc2d2b9
Time: 2013-10-21
Author: w.s.kerkstra@gmail.com
File Name: django/dataproviders/DropboxDataProvider.py
Class Name: HtmlLinkReplacer
Method Name: replace_img


Project Name: comic/grand-challenge.org
Commit Name: cdc092afbf1463fe94f4c907a89b6857935ffbbd
Time: 2013-10-21
Author: w.s.kerkstra@gmail.com
File Name: django/dataproviders/DropboxDataProvider.py
Class Name: HtmlLinkReplacer
Method Name: replace_img


Project Name: comic/grand-challenge.org
Commit Name: cdc092afbf1463fe94f4c907a89b6857935ffbbd
Time: 2013-10-21
Author: w.s.kerkstra@gmail.com
File Name: django/dataproviders/DropboxDataProvider.py
Class Name: HtmlLinkReplacer
Method Name: replace_a


Project Name: comic/grand-challenge.org
Commit Name: 9a92a13569d091b1f47ae89a4ec3a8d07fc2d2b9
Time: 2013-10-21
Author: w.s.kerkstra@gmail.com
File Name: django/dataproviders/DropboxDataProvider.py
Class Name: HtmlLinkReplacer
Method Name: replace_a