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:
|
||||
sys.argv += args
|
||||
try:
|
||||
status = pep257.main(*pep257.parse_options())
|
||||
if hasattr(pep257, 'run_pep257'):
|
||||
status = pep257.run_pep257()
|
||||
else:
|
||||
status = pep257.main(*pep257.parse_options())
|
||||
print()
|
||||
return status
|
||||
except Exception:
|
||||
|
Loading…
Reference in New Issue
Block a user