mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 18:09:59 +03:00
Try and appease linter
This commit is contained in:
parent
68c3b4508a
commit
549f24360b
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user