Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authormonosans <hsyqixco@protonmail.com>2021-07-16 10:42:29 +0300
committermonosans <hsyqixco@protonmail.com>2021-07-16 10:42:29 +0300
commit3d4f58a04e06ef4bdd023effc52d4cb33b49080c (patch)
treef57bda983c38061cd363252a845cf2ead046518b /docs
parent3a4076419418dcdac538c543903cfc6e16bde35f (diff)
Replace for loops with comprehensions
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py
index add1c5e7..33aeeae8 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -7,9 +7,7 @@ sys.path.insert(0, os.path.abspath('..'))
def process_docstring(app, what, name, obj, options, lines):
spaces_pat = re.compile(r"( {8})")
- ll = []
- for line in lines:
- ll.append(spaces_pat.sub(" ", line))
+ ll = [spaces_pat.sub(" ", line) for line in lines]
lines[:] = ll