diff options
author | Benedikt Loeffler <benedikt.loeffler@bmw.de> | 2019-01-30 16:08:36 +0100 |
---|---|---|
committer | Benedikt Loeffler <benedikt.loeffler@bmw.de> | 2019-01-30 16:08:36 +0100 |
commit | 363d881ab9291a2bbca4c0f3c270b873fd2ad009 (patch) | |
tree | b6822cec16bd91d9c42c21a8d5221170bc300fd3 /zuul/driver | |
parent | 91e7e680a16dc17469195029750a0a3231586c10 (diff) | |
download | zuul-363d881ab9291a2bbca4c0f3c270b873fd2ad009.tar.gz |
Fix flake8 error: E117 over-indented
Change-Id: I07f6bbccfa00844281475e3d94b0f5d10e397b9e
Diffstat (limited to 'zuul/driver')
-rw-r--r-- | zuul/driver/gerrit/gerritmodel.py | 6 | ||||
-rw-r--r-- | zuul/driver/github/githubmodel.py | 6 | ||||
-rw-r--r-- | zuul/driver/github/githubreporter.py | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/zuul/driver/gerrit/gerritmodel.py b/zuul/driver/gerrit/gerritmodel.py index 687f5f3a0..46a034a09 100644 --- a/zuul/driver/gerrit/gerritmodel.py +++ b/zuul/driver/gerrit/gerritmodel.py @@ -88,14 +88,14 @@ class GerritApprovalFilter(object): for k, v in rapproval.items(): if k == 'username': if (not v.search(by.get('username', ''))): - return False + return False elif k == 'email': if (not v.search(by.get('email', ''))): - return False + return False elif k == 'newer-than': t = now - v if (approval['grantedOn'] < t): - return False + return False elif k == 'older-than': t = now - v if (approval['grantedOn'] >= t): diff --git a/zuul/driver/github/githubmodel.py b/zuul/driver/github/githubmodel.py index d654f4f86..4a378af60 100644 --- a/zuul/driver/github/githubmodel.py +++ b/zuul/driver/github/githubmodel.py @@ -108,14 +108,14 @@ class GithubCommonFilter(object): for k, v in rreview.items(): if k == 'username': if (not v.search(by.get('username', ''))): - return False + return False elif k == 'email': if (not v.search(by.get('email', ''))): - return False + return False elif k == 'newer-than': t = now - v if (review['grantedOn'] < t): - return False + return False elif k == 'older-than': t = now - v if (review['grantedOn'] >= t): diff --git a/zuul/driver/github/githubreporter.py b/zuul/driver/github/githubreporter.py index 8be4bb107..e57c74691 100644 --- a/zuul/driver/github/githubreporter.py +++ b/zuul/driver/github/githubreporter.py @@ -157,12 +157,12 @@ class GithubReporter(BaseReporter): self.log.debug('Reporting change %s, params %s, labels:\n%s' % (item.change, self.config, self._labels)) for label in self._labels: - self.connection.labelPull(project, pr_number, label) + self.connection.labelPull(project, pr_number, label) if self._unlabels: self.log.debug('Reporting change %s, params %s, unlabels:\n%s' % (item.change, self.config, self._unlabels)) for label in self._unlabels: - self.connection.unlabelPull(project, pr_number, label) + self.connection.unlabelPull(project, pr_number, label) def _formatMergeMessage(self, change): message = '' |