Ignore pylint warnings for the older pep257 code
This commit is contained in:
parent
04598b2315
commit
eadaef3ce9
@ -107,8 +107,11 @@ def check_pep257(target):
|
|||||||
sys.argv += args
|
sys.argv += args
|
||||||
try:
|
try:
|
||||||
if hasattr(pep257, 'run_pep257'):
|
if hasattr(pep257, 'run_pep257'):
|
||||||
|
# newer pep257 versions
|
||||||
status = pep257.run_pep257()
|
status = pep257.run_pep257()
|
||||||
else:
|
else:
|
||||||
|
# older pep257 versions
|
||||||
|
# pylint: disable=assignment-from-no-return,no-member
|
||||||
status = pep257.main(*pep257.parse_options())
|
status = pep257.main(*pep257.parse_options())
|
||||||
print()
|
print()
|
||||||
return status
|
return status
|
||||||
|
Loading…
Reference in New Issue
Block a user