def _make_absolute(self, link):
<EOL>parsed = urlparse(link)._asdict()<EOL>if not parsed['<STR_LIT>']:<EOL><INDENT>return urljoin(self.base_url, link)<EOL><DEDENT>if not parsed['<STR_LIT>']:<EOL><INDENT>parsed['<STR_LIT>'] = urlparse(self.base_url).scheme<EOL>parsed = (v for v in parsed.values())<EOL>return urlunparse(parsed)<EOL><DEDENT>return link<EOL>
Makes a given link absolute.