Commit 9d411a78 by Jaakko Luttinen

Change empty markdown config to {} instead of None

Markdown does not accept None as empty configs. See:
https://github.com/waylan/Python-Markdown/issues/357
Thus, the default value for configs keyword argument should be {}
instead of None.
parent cff1f747
......@@ -97,7 +97,7 @@ class UrlizeExtension(markdown.Extension):
""" Replace autolink with UrlizePattern """
md.inlinePatterns['autolink'] = UrlizePattern(URLIZE_RE, md)
def makeExtension(configs=None):
def makeExtension(configs={}):
return UrlizeExtension(configs=configs)
if __name__ == "__main__":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment