'Detect full URLs, which look like http://foo/bar?id=1'

def _extract_full_urls(self, doc_string):

    for url_mo in URL_RE.finditer(doc_string):
        if self._require_quotes:
            if (not self._is_quoted(url_mo, doc_string)):
                continue
        try:
            url = URL(url_mo.group(0), encoding=self._encoding)
        except ValueError:
            pass
        else:
            self._re_urls.add(url)
