in py_look_for_timeouts/main.py [0:0]
def check(filename, checker=None):
"""Check a file for missing/misconfigure timeouts."""
if not checker:
checker = Checker()
v = Visitor(filename, checker=checker)
with open(filename, 'r') as fobj:
try:
parsed = ast.parse(fobj.read(), filename)
v.visit(parsed)
except Exception: # noqa
raise # noqa
return v.errors