diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-12 10:07:05 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-12 10:07:05 +0900 |
| commit | 60d4846e0fa4ec0e76ed6c963d13f74015939875 (patch) | |
| tree | ca4ae881df00d292d48211517169085b97ed4e78 /sphinx/util/parallel.py | |
| parent | bb8dcb5ceea378368084567354f70fffcd5d5f42 (diff) | |
| download | sphinx-git-60d4846e0fa4ec0e76ed6c963d13f74015939875.tar.gz | |
Fix flake8 violations
Diffstat (limited to 'sphinx/util/parallel.py')
| -rw-r--r-- | sphinx/util/parallel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/parallel.py b/sphinx/util/parallel.py index 4f4cd5c46..ce51ac0eb 100644 --- a/sphinx/util/parallel.py +++ b/sphinx/util/parallel.py @@ -117,11 +117,11 @@ def make_chunks(arguments, nproc, maxbatch=10): chunksize = nargs // nproc if chunksize >= maxbatch: # try to improve batch size vs. number of batches - chunksize = int(sqrt(nargs/nproc * maxbatch)) + chunksize = int(sqrt(nargs / nproc * maxbatch)) if chunksize == 0: chunksize = 1 nchunks, rest = divmod(nargs, chunksize) if rest: nchunks += 1 # partition documents in "chunks" that will be written by one Process - return [arguments[i*chunksize:(i+1)*chunksize] for i in range(nchunks)] + return [arguments[i * chunksize:(i + 1) * chunksize] for i in range(nchunks)] |
