Example #1
0
 def _link_allowed(self, link):
     allowed = SgmlLinkExtractor._link_allowed(self, link)
     if allowed and self.canonicalize:
         link.url = my_canonicalize_url(link.url)
     return allowed