@staticmethod
def ParseIssueURL(parsed_url):
    if ((not parsed_url.scheme) or (not parsed_url.scheme.startswith('http'))):
        return None
    match = re.match('/(\\d+)(/.*)?$', parsed_url.path)
    if match:
        return _RietveldParsedIssueNumberArgument(issue=int(match.group(1)), hostname=parsed_url.netloc)
    match = re.match('/download/issue(\\d+)_(\\d+).diff$', parsed_url.path)
    if match:
        return _RietveldParsedIssueNumberArgument(issue=int(match.group(1)), patchset=int(match.group(2)), hostname=parsed_url.netloc, patch_url=gclient_utils.UpgradeToHttps(parsed_url.geturl()))
    return None
@staticmethod
def ParseIssueURL(parsed_url):
    if ((not parsed_url.scheme) or (not parsed_url.scheme.startswith('http'))):
        return None
    match = re.match('/(\\d+)(/.*)?$', parsed_url.path)
    if match:
        return _RietveldParsedIssueNumberArgument(issue=int(match.group(1)), hostname=parsed_url.netloc)
    match = re.match('/download/issue(\\d+)_(\\d+).diff$', parsed_url.path)
    if match:
        return _RietveldParsedIssueNumberArgument(issue=int(match.group(1)), patchset=int(match.group(2)), hostname=parsed_url.netloc, patch_url=gclient_utils.UpgradeToHttps(parsed_url.geturl()))
    return None