Flake8 has some strange binary operator not allowed at beginning or end of line rules

This commit is contained in:
Tim Gates 2019-04-12 10:13:27 +10:00
parent 1bc299f87f
commit bfa42cf0a8
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':
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: