summaryrefslogtreecommitdiff
path: root/markdown/extensions
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2020-05-14 12:45:09 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2020-05-14 19:39:12 -0400
commit05fdf31de983e8b939ad2e47a705f5bdb8244183 (patch)
tree275e3ddc117b3c04393f6c24083f6ecd6ac5734f /markdown/extensions
parentc9a093c31dca2fce0f76f1d3960db50ab9f04c97 (diff)
downloadpython-markdown-05fdf31de983e8b939ad2e47a705f5bdb8244183.tar.gz
Flake8 cleanup.
The latest version of flake8 added some new tests. This cleans up after them.
Diffstat (limited to 'markdown/extensions')
-rw-r--r--markdown/extensions/def_list.py4
-rw-r--r--markdown/extensions/footnotes.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/markdown/extensions/def_list.py b/markdown/extensions/def_list.py
index 3978b4d..5a6541a 100644
--- a/markdown/extensions/def_list.py
+++ b/markdown/extensions/def_list.py
@@ -34,8 +34,8 @@ class DefListProcessor(BlockProcessor):
raw_block = blocks.pop(0)
m = self.RE.search(raw_block)
- terms = [l.strip() for l in
- raw_block[:m.start()].split('\n') if l.strip()]
+ terms = [term.strip() for term in
+ raw_block[:m.start()].split('\n') if term.strip()]
block = raw_block[m.end():]
no_indent = self.NO_INDENT_RE.match(block)
if no_indent:
diff --git a/markdown/extensions/footnotes.py b/markdown/extensions/footnotes.py
index 7d7ad3f..beab919 100644
--- a/markdown/extensions/footnotes.py
+++ b/markdown/extensions/footnotes.py
@@ -347,8 +347,8 @@ class FootnotePostTreeprocessor(Treeprocessor):
self.offset += 1
# Add all the new duplicate links.
el = list(li)[-1]
- for l in links:
- el.append(l)
+ for link in links:
+ el.append(link)
break
def get_num_duplicates(self, li):