mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
Flake8 has some strange binary operator not allowed at beginning or end of line rules
This commit is contained in:
parent
1bc299f87f
commit
bfa42cf0a8
|
@ -187,9 +187,9 @@ try:
|
|||
if not hasattr(markdown, '__version__') and markdown.version <= '2.2':
|
||||
HEADERID_EXT_PATH = 'headerid'
|
||||
LEVEL_PARAM = 'level'
|
||||
elif (not hasattr(markdown, '__version__') or
|
||||
(isinstance(markdown.__version__, type(''))
|
||||
and markdown.version < '2.6')):
|
||||
elif ((not hasattr(markdown, '__version__')
|
||||
) or ((not isinstance(markdown.__version__, type(''))
|
||||
) and markdown.version < '2.6')):
|
||||
HEADERID_EXT_PATH = 'markdown.extensions.headerid'
|
||||
LEVEL_PARAM = 'level'
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user