def astroid_wrapper(func, modname):
 print(('parsing %s...' % modname))
 try:
  return func(modname)
 except AstroidBuildingException as exc:
  print(exc)
 except Exception as exc:
  import traceback
  traceback.print_exc()

def astroid_wrapper ( func , modname ) : print ( ( 'parsing %s...' % modname ) ) try : return func ( modname ) except AstroidBuildingException as exc : print ( exc ) except Exception as exc : import traceback traceback . print_exc ( )
wrapper to give to astroidmanager .