def create_report(urls_accessible_http):
  try:
    f=open('url_http_request_report','w')
  except:
    print 'Cannot open file to write report'
    traceback.print_exc(file=sys.stdout)

  if len(urls_accessible_http) > 0:
    for url in urls_accessible_http:
      f.write(url+'\n')
  else:
    f.write('None of the URLs can be accessed over HTTP.')

  f.close()
dataset/ETHPy150Open arvinddoraiswamy/mywebappscripts/ForceSSL/force_http_req.py/create_report/original