From 819827a42ddb364f98c3a1a7eae2536dc54bc4cc Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 12 Feb 2020 15:20:19 +0900 Subject: Fix blank line issues reported by flake8 - E301 expected 1 blank line - E302 expected 2 blank lines - E303 too many blank lines - E305 expected 2 blank lines after class or function definition - E306 expected 1 blank line before a nested definition Fixed automatically with autopep8: git ls-files | grep py$ | xargs autopep8 --in-place \ --select E301,E302,E303,E305,E306 Manually fix issues in project.py caused by misuse of block comments. Change-Id: Iee840fcaff48aae504ddac9c3e76d2acd484f6a9 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254599 Reviewed-by: Mike Frysinger Tested-by: David Pursehouse --- gitc_utils.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gitc_utils.py') diff --git a/gitc_utils.py b/gitc_utils.py index 45920b07..11284e20 100644 --- a/gitc_utils.py +++ b/gitc_utils.py @@ -29,12 +29,15 @@ from error import ManifestParseError NUM_BATCH_RETRIEVE_REVISIONID = 32 + def get_gitc_manifest_dir(): return wrapper.Wrapper().get_gitc_manifest_dir() + def parse_clientdir(gitc_fs_path): return wrapper.Wrapper().gitc_parse_clientdir(gitc_fs_path) + def _set_project_revisions(projects): """Sets the revisionExpr for a list of projects. @@ -63,6 +66,7 @@ def _set_project_revisions(projects): (proj.remote.url, proj.revisionExpr)) proj.revisionExpr = revisionExpr + def _manifest_groups(manifest): """Returns the manifest group string that should be synced @@ -77,6 +81,7 @@ def _manifest_groups(manifest): groups = 'default,platform-' + platform.system().lower() return groups + def generate_gitc_manifest(gitc_manifest, manifest, paths=None): """Generate a manifest for shafsd to use for this GITC client. @@ -140,6 +145,7 @@ def generate_gitc_manifest(gitc_manifest, manifest, paths=None): # Save the manifest. save_manifest(manifest) + def save_manifest(manifest, client_dir=None): """Save the manifest file in the client_dir. -- cgit v1.2.3-54-g00ecf