Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Lee <anntzer.lee@gmail.com>2019-11-17 19:04:34 +0300
committerAntony Lee <anntzer.lee@gmail.com>2019-12-21 13:50:18 +0300
commit814513ba9ffb1c0c1678b33757e263393b3c12d2 (patch)
tree908868684fd1d59722ae4961acf0644293fc2316 /sphinx/directives
parentacdcf81599d49de751811269cd428850605224a1 (diff)
Replace `a and b or c` by the more legible `b if a or c`.
Diffstat (limited to 'sphinx/directives')
-rw-r--r--sphinx/directives/other.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py
index 1113e8241..a5a2831d6 100644
--- a/sphinx/directives/other.py
+++ b/sphinx/directives/other.py
@@ -300,7 +300,7 @@ class HList(SphinxDirective):
index = 0
newnode = addnodes.hlist()
for column in range(ncolumns):
- endindex = index + (column < nmore and (npercol + 1) or npercol)
+ endindex = index + ((npercol + 1) if column < nmore else npercol)
bullet_list = nodes.bullet_list()
bullet_list += fulllist.children[index:endindex]
newnode += addnodes.hlistcol('', bullet_list)