summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--markdown/extensions/def_list.py4
-rw-r--r--markdown/extensions/footnotes.py4
-rw-r--r--markdown/treeprocessors.py4
3 files changed, 6 insertions, 6 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):
diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py
index 1089010..055d8ac 100644
--- a/markdown/treeprocessors.py
+++ b/markdown/treeprocessors.py
@@ -369,8 +369,8 @@ class InlineProcessor(Treeprocessor):
lst = self.__processPlaceholders(
self.__handleInline(text), child
)
- for l in lst:
- self.parent_map[l[0]] = child
+ for item in lst:
+ self.parent_map[item[0]] = child
stack += lst
insertQueue.append((child, lst))
self.ancestors.pop()