From c1b86a232383748811c6faf17f364e63e10f7dd4 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 14 Nov 2012 11:36:51 +0900 Subject: Fix inconsistent indentation The repo coding style is to indent at 2 characters, but there are many places where this is not followed. Enable pylint warning "W0311: Bad indentation" and make sure all indentation is at multiples of 2 characters. Change-Id: I68f0f64470789ce2429ab11104d15d380a63e6a8 --- project.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'project.py') diff --git a/project.py b/project.py index 22ac9efd..6507241c 100644 --- a/project.py +++ b/project.py @@ -585,14 +585,14 @@ class Project(object): return self._userident_email def _LoadUserIdentity(self): - u = self.bare_git.var('GIT_COMMITTER_IDENT') - m = re.compile("^(.*) <([^>]*)> ").match(u) - if m: - self._userident_name = m.group(1) - self._userident_email = m.group(2) - else: - self._userident_name = '' - self._userident_email = '' + u = self.bare_git.var('GIT_COMMITTER_IDENT') + m = re.compile("^(.*) <([^>]*)> ").match(u) + if m: + self._userident_name = m.group(1) + self._userident_email = m.group(2) + else: + self._userident_name = '' + self._userident_email = '' def GetRemote(self, name): """Get the configuration for a single remote. @@ -1381,14 +1381,14 @@ class Project(object): tag_name = None def CheckForSha1(): - try: - # if revision (sha or tag) is not present then following function - # throws an error. - self.bare_git.rev_parse('--verify', '%s^0' % self.revisionExpr) - return True - except GitError: - # There is no such persistent revision. We have to fetch it. - return False + try: + # if revision (sha or tag) is not present then following function + # throws an error. + self.bare_git.rev_parse('--verify', '%s^0' % self.revisionExpr) + return True + except GitError: + # There is no such persistent revision. We have to fetch it. + return False if current_branch_only: if ID_RE.match(self.revisionExpr) is not None: -- cgit v1.2.3-54-g00ecf