summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.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 /subcmds/sync.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 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index df23034b..9e4c7750 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -217,7 +217,7 @@ later is required to fix a server side protocol bug.
217 p.add_option('-l', '--local-only', 217 p.add_option('-l', '--local-only',
218 dest='local_only', action='store_true', 218 dest='local_only', action='store_true',
219 help="only update working tree, don't fetch") 219 help="only update working tree, don't fetch")
220 p.add_option('--no-manifest-update','--nmu', 220 p.add_option('--no-manifest-update', '--nmu',
221 dest='mp_update', action='store_false', default='true', 221 dest='mp_update', action='store_false', default='true',
222 help='use the existing manifest checkout as-is. ' 222 help='use the existing manifest checkout as-is. '
223 '(do not update to the latest revision)') 223 '(do not update to the latest revision)')
@@ -1136,7 +1136,7 @@ class _FetchTimes(object):
1136 old = self._times.get(name, t) 1136 old = self._times.get(name, t)
1137 self._seen.add(name) 1137 self._seen.add(name)
1138 a = self._ALPHA 1138 a = self._ALPHA
1139 self._times[name] = (a*t) + ((1-a) * old) 1139 self._times[name] = (a * t) + ((1 - a) * old)
1140 1140
1141 def _Load(self): 1141 def _Load(self):
1142 if self._times is None: 1142 if self._times is None:
@@ -1208,7 +1208,7 @@ class PersistentTransport(xmlrpc.client.Transport):
1208 if proxy: 1208 if proxy:
1209 proxyhandler = urllib.request.ProxyHandler({ 1209 proxyhandler = urllib.request.ProxyHandler({
1210 "http": proxy, 1210 "http": proxy,
1211 "https": proxy }) 1211 "https": proxy})
1212 1212
1213 opener = urllib.request.build_opener( 1213 opener = urllib.request.build_opener(
1214 urllib.request.HTTPCookieProcessor(cookiejar), 1214 urllib.request.HTTPCookieProcessor(cookiejar),