From abdf7500612f1d115863ba8f026ddbea1e5a1f28 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 12 Feb 2020 14:58:39 +0900 Subject: Fix indentation issues reported by flake8 - E121 continuation line under-indented for hanging indent - E122 continuation line missing indentation or outdented - E125 continuation line with same indent as next logical line - E126 continuation line over-indented for hanging indent - E127 continuation line over-indented for visual indent - E128 continuation line under-indented for visual indent - E129 visually indented line with same indent as next logical line - E131 continuation line unaligned for hanging indent Fixed automatically with autopep8: git ls-files | grep py$ | xargs autopep8 --in-place \ --select E121,E122,E125,E126,E127,E128,E129,E131 Change-Id: Ifd95fb8e6a1a4d6e9de187b5787d64a6326dd249 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254605 Reviewed-by: Mike Frysinger Tested-by: David Pursehouse --- subcmds/sync.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'subcmds/sync.py') diff --git a/subcmds/sync.py b/subcmds/sync.py index 9e4c7750..1ea102c0 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -327,14 +327,14 @@ later is required to fix a server side protocol bug. try: try: success = project.Sync_NetworkHalf( - quiet=opt.quiet, - current_branch_only=opt.current_branch_only, - force_sync=opt.force_sync, - clone_bundle=not opt.no_clone_bundle, - no_tags=opt.no_tags, archive=self.manifest.IsArchive, - optimized_fetch=opt.optimized_fetch, - prune=opt.prune, - clone_filter=clone_filter) + quiet=opt.quiet, + current_branch_only=opt.current_branch_only, + force_sync=opt.force_sync, + clone_bundle=not opt.no_clone_bundle, + no_tags=opt.no_tags, archive=self.manifest.IsArchive, + optimized_fetch=opt.optimized_fetch, + prune=opt.prune, + clone_filter=clone_filter) self._fetch_times.Set(project, time.time() - start) # Lock around all the rest of the code, since printing, updating a set @@ -356,7 +356,7 @@ later is required to fix a server side protocol bug. pass except Exception as e: print('error: Cannot fetch %s (%s: %s)' - % (project.name, type(e).__name__, str(e)), file=sys.stderr) + % (project.name, type(e).__name__, str(e)), file=sys.stderr) err_event.set() raise finally: @@ -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 ' @@ -885,7 +885,7 @@ later is required to fix a server side protocol bug. manifest_name = opt.manifest_name smart_sync_manifest_path = os.path.join( - self.manifest.manifestProject.worktree, 'smart_sync_override.xml') + self.manifest.manifestProject.worktree, 'smart_sync_override.xml') if opt.smart_sync or opt.smart_tag: manifest_name = self._SmartSyncSetup(opt, smart_sync_manifest_path) -- cgit v1.2.3-54-g00ecf