Klaus Demo ~jonashaag/klaus / 9d2d6c9
remove BASE_URL usage from dumbtest.py posativ 10 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1212 return url
1313
1414 AHREF_RE = re.compile('href="([\w/][^"]+)"')
15
16 BASE_URL = 'http://localhost:8080'
1715
1816 seen = set()
1917 errors = defaultdict(set)
3634 if '-v' in sys.argv:
3735 print 'Requesting %r...' % url
3836 start = time.time()
39 http_conn.request('GET', BASE_URL + url)
37 http_conn.request('GET', url)
4038 response = http_conn.getresponse()
4139 durations[view_from_url(url)].append(time.time() - start)
4240 status = str(response.status)