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 <vapier@google.com>
Tested-by: David Pursehouse <dpursehouse@collab.net>
diff --git a/gitc_utils.py b/gitc_utils.py
index 45920b0..11284e2 100644
--- a/gitc_utils.py
+++ b/gitc_utils.py
@@ -29,12 +29,15 @@
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 @@
(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 @@
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 @@
# Save the manifest.
save_manifest(manifest)
+
def save_manifest(manifest, client_dir=None):
"""Save the manifest file in the client_dir.