@staticmethod
def ParseIssueURL(parsed_url):
    if ((not parsed_url.scheme) or (not parsed_url.scheme.startswith('http'))):
        return None
    if (parsed_url.path == '/'):
        part = parsed_url.fragment
    else:
        part = parsed_url.path
    match = re.match('(/c)?/(\\d+)(/(\\d+)?/?)?$', part)
    if match:
        return _ParsedIssueNumberArgument(issue=int(match.group(2)), patchset=(int(match.group(4)) if match.group(4) else None), hostname=parsed_url.netloc)
    return None
@staticmethod
def ParseIssueURL(parsed_url):
    if ((not parsed_url.scheme) or (not parsed_url.scheme.startswith('http'))):
        return None
    if (parsed_url.path == '/'):
        part = parsed_url.fragment
    else:
        part = parsed_url.path
    match = re.match('(/c)?/(\\d+)(/(\\d+)?/?)?$', part)
    if match:
        return _ParsedIssueNumberArgument(issue=int(match.group(2)), patchset=(int(match.group(4)) if match.group(4) else None), hostname=parsed_url.netloc)
    return None