From 54a4e6007ab8be5738525b440cd6836c613517df Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 12 Feb 2020 14:31:05 +0900 Subject: 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 Tested-by: David Pursehouse --- subcmds/sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subcmds/sync.py') 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. p.add_option('-l', '--local-only', dest='local_only', action='store_true', help="only update working tree, don't fetch") - p.add_option('--no-manifest-update','--nmu', + p.add_option('--no-manifest-update', '--nmu', dest='mp_update', action='store_false', default='true', help='use the existing manifest checkout as-is. ' '(do not update to the latest revision)') @@ -1136,7 +1136,7 @@ class _FetchTimes(object): old = self._times.get(name, t) self._seen.add(name) a = self._ALPHA - self._times[name] = (a*t) + ((1-a) * old) + self._times[name] = (a * t) + ((1 - a) * old) def _Load(self): if self._times is None: @@ -1208,7 +1208,7 @@ class PersistentTransport(xmlrpc.client.Transport): if proxy: proxyhandler = urllib.request.ProxyHandler({ "http": proxy, - "https": proxy }) + "https": proxy}) opener = urllib.request.build_opener( urllib.request.HTTPCookieProcessor(cookiejar), -- cgit v1.2.3-54-g00ecf