def SetFlag(self, flag, value):
    'Patchset must match.'
    if (not self.GetPatchset()):
        DieWithError('The patchset needs to match. Send another patchset.')
    try:
        return self.RpcServer().set_flag(self.GetIssue(), self.GetPatchset(), flag, value)
    except urllib2.HTTPError as e:
        if (e.code == 404):
            DieWithError(("The issue %s doesn't exist." % self.GetIssue()))
        if (e.code == 403):
            DieWithError(("Access denied to issue %s. Maybe the patchset %s doesn't match?" % (self.GetIssue(), self.GetPatchset())))
        raise
Patchset must match.
def SetFlag(self, flag, value):
    
    if (not self.GetPatchset()):
        DieWithError('The patchset needs to match. Send another patchset.')
    try:
        return self.RpcServer().set_flag(self.GetIssue(), self.GetPatchset(), flag, value)
    except urllib2.HTTPError as e:
        if (e.code == 404):
            DieWithError(("The issue %s doesn't exist." % self.GetIssue()))
        if (e.code == 403):
            DieWithError(("Access denied to issue %s. Maybe the patchset %s doesn't match?" % (self.GetIssue(), self.GetPatchset())))
        raise