Replace constant with string.
This commit is contained in:
parent
df769725d6
commit
157e5690ab
|
@ -117,6 +117,9 @@ def _args_to_int(mapping, argument):
|
|||
Convert list of strings to an int using a mapping.
|
||||
"""
|
||||
if isinstance(argument, int):
|
||||
if argument == 0:
|
||||
return 0
|
||||
|
||||
deprecation('passing extensions and flags as constants is deprecated')
|
||||
return argument
|
||||
elif isinstance(argument, (tuple, list)):
|
||||
|
|
|
@ -357,7 +357,7 @@ class CustomRendererTest(TestCase):
|
|||
'math'))
|
||||
|
||||
# EXT_UNDERLINE Clashes with emphasis.
|
||||
render_underline = m.Markdown(TestRenderer(), m.EXT_UNDERLINE)
|
||||
render_underline = m.Markdown(TestRenderer(), ('underline',))
|
||||
render_lowlevel = m.Markdown(TestRendererLowlevel())
|
||||
render_hf = m.Markdown(TestRendererHeaderFooter())
|
||||
|
||||
|
|
Loading…
Reference in New Issue