summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2020-02-12 14:31:05 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2020-02-12 06:00:16 +0000
commit54a4e6007ab8be5738525b440cd6836c613517df (patch)
tree4e13a2ed3775463c0459754452b3888b7bb98b28 /manifest_xml.py
parent42339d7e52d6de6c702b78be7f5014e13646cc1b (diff)
downloadgit-repo-54a4e6007ab8be5738525b440cd6836c613517df.tar.gz
Fix various whitespace issues reported by pyflakes
- E201 whitespace after '[' - E202 whitespace before '}' - E221 multiple spaces before operator - E222 multiple spaces after operator - E225 missing whitespace around operator - E226 missing whitespace around arithmetic operator - E231 missing whitespace after ',' - E261 at least two spaces before inline comment - E271 multiple spaces after keyword Fixed automatically with autopep8: git ls-files | grep py$ | xargs autopep8 --in-place \ --select E201,E202,E221,E222,E225,E226,E231,E261,E271 Change-Id: I367113eb8c847eb460532c7c2f8643f33040308c Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254601 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, 2 insertions, 2 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index d24dbcea..9df03c06 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -224,7 +224,7 @@ class XmlManifest(object):
224 if self.notice: 224 if self.notice:
225 notice_element = root.appendChild(doc.createElement('notice')) 225 notice_element = root.appendChild(doc.createElement('notice'))
226 notice_lines = self.notice.splitlines() 226 notice_lines = self.notice.splitlines()
227 indented_notice = ('\n'.join(" "*4 + line for line in notice_lines))[4:] 227 indented_notice = ('\n'.join(" " * 4 + line for line in notice_lines))[4:]
228 notice_element.appendChild(doc.createTextNode(indented_notice)) 228 notice_element.appendChild(doc.createTextNode(indented_notice))
229 229
230 d = self.default 230 d = self.default
@@ -855,7 +855,7 @@ class XmlManifest(object):
855 if clone_depth: 855 if clone_depth:
856 try: 856 try:
857 clone_depth = int(clone_depth) 857 clone_depth = int(clone_depth)
858 if clone_depth <= 0: 858 if clone_depth <= 0:
859 raise ValueError() 859 raise ValueError()
860 except ValueError: 860 except ValueError:
861 raise ManifestParseError('invalid clone-depth %s in %s' % 861 raise ManifestParseError('invalid clone-depth %s in %s' %