From e5913ae41058ddd7f692e9cc18e5f71b8251bd60 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 12 Feb 2020 13:56:59 +0900 Subject: Fix flake8 E251 unexpected spaces around keyword / parameter equals Fixed automatically with autopep8: git ls-files | grep py$ | xargs autopep8 --in-place --select E251 Change-Id: I58009e1c8c91c39745d559ac919be331d4cd9e77 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254598 Tested-by: David Pursehouse Reviewed-by: Mike Frysinger --- subcmds/sync.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'subcmds/sync.py') diff --git a/subcmds/sync.py b/subcmds/sync.py index 68ad88d5..13c419c3 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -396,8 +396,8 @@ later is required to fix a server side protocol bug. err_event=err_event, clone_filter=self.manifest.CloneFilter) if self.jobs > 1: - t = _threading.Thread(target = self._FetchProjectList, - kwargs = kwargs) + t = _threading.Thread(target=self._FetchProjectList, + kwargs=kwargs) # Ensure that Ctrl-C will not freeze the repo process. t.daemon = True threads.add(t) @@ -704,16 +704,16 @@ later is required to fix a server side protocol bug. gitdir = os.path.join(self.manifest.topdir, path, '.git') if os.path.exists(gitdir): project = Project( - manifest = self.manifest, - name = path, - remote = RemoteSpec('origin'), - gitdir = gitdir, - objdir = gitdir, - worktree = os.path.join(self.manifest.topdir, path), - relpath = path, - revisionExpr = 'HEAD', - revisionId = None, - groups = None) + manifest=self.manifest, + name=path, + remote=RemoteSpec('origin'), + gitdir=gitdir, + objdir=gitdir, + worktree=os.path.join(self.manifest.topdir, path), + relpath=path, + revisionExpr='HEAD', + revisionId=None, + groups=None) if project.IsDirty() and opt.force_remove_dirty: print('WARNING: Removing dirty project "%s": uncommitted changes ' @@ -1100,9 +1100,9 @@ def _VerifyTag(project): cmd = [GIT, 'tag', '-v', cur] proc = subprocess.Popen(cmd, - stdout = subprocess.PIPE, - stderr = subprocess.PIPE, - env = env) + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + env=env) out = proc.stdout.read() proc.stdout.close() -- cgit v1.2.3-54-g00ecf