mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 04:36:52 +00:00
cleanup
This commit is contained in:
parent
ff8a99cd62
commit
87dc65eac1
2 changed files with 3 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ def get_code_complexity(code, min=7, filename='stdin'):
|
|||
try:
|
||||
ast = compiler.parse(code)
|
||||
except AttributeError as e:
|
||||
print >>sys.stderr, "Unable to parse %s: %s" % (filename, e)
|
||||
print >> sys.stderr, "Unable to parse %s: %s" % (filename, e)
|
||||
return 0
|
||||
|
||||
visitor = PathGraphingAstVisitor()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue