Try and appease linter

This commit is contained in:
Tim Gates 2019-04-09 08:55:15 +10:00
parent 68c3b4508a
commit 549f24360b
No known key found for this signature in database
GPG Key ID: AE3BE0D53823CF05

View File

@ -187,9 +187,9 @@ try:
if not hasattr(markdown, '__version__') and markdown.version <= '2.2': if not hasattr(markdown, '__version__') and markdown.version <= '2.2':
HEADERID_EXT_PATH = 'headerid' HEADERID_EXT_PATH = 'headerid'
LEVEL_PARAM = 'level' LEVEL_PARAM = 'level'
elif not hasattr(markdown, '__version__') or ( elif (not hasattr(markdown, '__version__') or
type(markdown.__version__) != type('') and markdown.version < '2.6' (isinstance(markdown.__version__, type(''))
): and markdown.version < '2.6')):
HEADERID_EXT_PATH = 'markdown.extensions.headerid' HEADERID_EXT_PATH = 'markdown.extensions.headerid'
LEVEL_PARAM = 'level' LEVEL_PARAM = 'level'
else: else: