Fix pep257 check for newer versions
This commit is contained in:
parent
4485e4ee1b
commit
04598b2315
@ -106,7 +106,10 @@ def check_pep257(target):
|
|||||||
if args is not None:
|
if args is not None:
|
||||||
sys.argv += args
|
sys.argv += args
|
||||||
try:
|
try:
|
||||||
status = pep257.main(*pep257.parse_options())
|
if hasattr(pep257, 'run_pep257'):
|
||||||
|
status = pep257.run_pep257()
|
||||||
|
else:
|
||||||
|
status = pep257.main(*pep257.parse_options())
|
||||||
print()
|
print()
|
||||||
return status
|
return status
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
Reference in New Issue
Block a user