aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/__init__.py2
-rw-r--r--markdown/extensions/footnotes.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py
index 068e966..8872023 100644
--- a/markdown/__init__.py
+++ b/markdown/__init__.py
@@ -241,7 +241,7 @@ class Markdown(object):
try:
self.serializer = self.output_formats[self.output_format]
except KeyError as e:
- valid_formats = self.output_formats.keys()
+ valid_formats = list(self.output_formats.keys())
valid_formats.sort()
message = 'Invalid Output Format: "%s". Use one of %s.' \
% (self.output_format,
diff --git a/markdown/extensions/footnotes.py b/markdown/extensions/footnotes.py
index b7ebc35..131466c 100644
--- a/markdown/extensions/footnotes.py
+++ b/markdown/extensions/footnotes.py
@@ -130,7 +130,7 @@ class FootnoteExtension(Extension):
def makeFootnotesDiv(self, root):
""" Return div of footnotes as et Element. """
- if not self.footnotes.keys():
+ if not list(self.footnotes.keys()):
return None
div = etree.Element("div")