Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-09-06 14:26:30 +0200
committerGitHub <noreply@github.com>2021-09-06 14:26:30 +0200
commit05c923524be91f2031855fce6fca6252ea21e444 (patch)
tree0c1f7f6b18b4e3e89dd22feb67b3d00db3e12b36 /docs
parent025dc83194d2bfc0bde73681abf5d280c745806d (diff)
parent3d4f58a04e06ef4bdd023effc52d4cb33b49080c (diff)
Merge pull request #600 from monosans/comprehension
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