def CMDPatchIssue(self, issue_arg, reject, nocommit, directory):
    'Fetches and applies the issue patch from codereview to local branch.'
    if (isinstance(issue_arg, (int, long)) or issue_arg.isdigit()):
        parsed_issue_arg = _ParsedIssueNumberArgument(int(issue_arg))
    else:
        parsed_issue_arg = self._codereview_impl.ParseIssueURL(urlparse.urlparse(issue_arg))
    if ((not parsed_issue_arg) or (not parsed_issue_arg.valid)):
        DieWithError(('Failed to parse issue argument "%s". Must be an issue number or a valid URL.' % issue_arg))
    return self._codereview_impl.CMDPatchWithParsedIssue(parsed_issue_arg, reject, nocommit, directory)
Fetches and applies the issue patch from codereview to local branch.
def CMDPatchIssue(self, issue_arg, reject, nocommit, directory):
    
    if (isinstance(issue_arg, (int, long)) or issue_arg.isdigit()):
        parsed_issue_arg = _ParsedIssueNumberArgument(int(issue_arg))
    else:
        parsed_issue_arg = self._codereview_impl.ParseIssueURL(urlparse.urlparse(issue_arg))
    if ((not parsed_issue_arg) or (not parsed_issue_arg.valid)):
        DieWithError(('Failed to parse issue argument "%s". Must be an issue number or a valid URL.' % issue_arg))
    return self._codereview_impl.CMDPatchWithParsedIssue(parsed_issue_arg, reject, nocommit, directory)