summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2020-02-12 15:20:19 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2020-02-12 06:36:40 +0000
commit819827a42ddb364f98c3a1a7eae2536dc54bc4cc (patch)
treefe6bdca5ff7e44d53595a6da76d2b56ea659eee1 /manifest_xml.py
parentabdf7500612f1d115863ba8f026ddbea1e5a1f28 (diff)
downloadgit-repo-819827a42ddb364f98c3a1a7eae2536dc54bc4cc.tar.gz
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>
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index fd0e4f12..7f38d8c3 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -56,6 +56,7 @@ urllib.parse.uses_netloc.extend([
56 'sso', 56 'sso',
57 'rpc']) 57 'rpc'])
58 58
59
59class _Default(object): 60class _Default(object):
60 """Project defaults within the manifest.""" 61 """Project defaults within the manifest."""
61 62
@@ -74,6 +75,7 @@ class _Default(object):
74 def __ne__(self, other): 75 def __ne__(self, other):
75 return self.__dict__ != other.__dict__ 76 return self.__dict__ != other.__dict__
76 77
78
77class _XmlRemote(object): 79class _XmlRemote(object):
78 def __init__(self, 80 def __init__(self,
79 name, 81 name,
@@ -127,6 +129,7 @@ class _XmlRemote(object):
127 orig_name=self.name, 129 orig_name=self.name,
128 fetchUrl=self.fetchUrl) 130 fetchUrl=self.fetchUrl)
129 131
132
130class XmlManifest(object): 133class XmlManifest(object):
131 """manages the repo configuration file""" 134 """manages the repo configuration file"""
132 135
@@ -655,7 +658,6 @@ class XmlManifest(object):
655 if self._repo_hooks_project and (self._repo_hooks_project.name == name): 658 if self._repo_hooks_project and (self._repo_hooks_project.name == name):
656 self._repo_hooks_project = None 659 self._repo_hooks_project = None
657 660
658
659 def _AddMetaProjectMirror(self, m): 661 def _AddMetaProjectMirror(self, m):
660 name = None 662 name = None
661 m_url = m.GetRemote(m.remote.name).url 663 m_url = m.GetRemote(m.remote.name).url