capybara/virtualenv/lib/python2.7/site-packages/pip/index.py
def links(self):
        """Yields all links in the page"""
        for anchor in self.parsed.findall(".//a"):
            if anchor.get("href"):
                href = anchor.get("href")
                url = self.clean_link(
                    urllib_parse.urljoin(self.base_url, href)
                )

                # Determine if this link is internal. If that distinction
                #   doesn't make sense in this context, then we don't make
                #   any distinction.
                internal = None
                if self.api_version and self.api_version >= 2:
                    # Only api_versions >= 2 have a distinction between
                    #   external and internal links
                    internal = bool(
                        anchor.get("rel") and
                        "internal" in anchor.get("rel").split()
                    )

                yield Link(url, self, internal=internal)
def links(self):
        for anchor in self.parsed.findall(".//a"):
            if anchor.get("href"):
                href = anchor.get("href")
                url = self.clean_link(
                    urllib_parse.urljoin(self.base_url, href)
                )

                # Determine if this link is internal. If that distinction
                #   doesn't make sense in this context, then we don't make
                #   any distinction.
                internal = None
                if self.api_version and self.api_version >= 2:
                    # Only api_versions >= 2 have a distinction between
                    #   external and internal links
                    internal = bool(
                        anchor.get("rel") and
                        "internal" in anchor.get("rel").split()
                    )

                yield Link(url, self, internal=internal)
def links ( self ) : for anchor in self . parsed . findall ( ".//a" ) : if anchor . get ( "href" ) : href = anchor . get ( "href" ) url = self . clean_link ( urllib_parse . urljoin ( self . base_url , href ) ) # Determine if this link is internal. If that distinction #   doesn't make sense in this context, then we don't make #   any distinction. internal = None if self . api_version and self . api_version >= 2 : # Only api_versions >= 2 have a distinction between #   external and internal links internal = bool ( anchor . get ( "rel" ) and "internal" in anchor . get ( "rel" ) . split ( ) ) yield Link ( url , self , internal = internal )
Yields all links in the page
Yields all links in the page