From a98ec717f2312f6882a90deded17ef75cbbb1991 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Fri, 14 Dec 2012 23:27:10 +0100 Subject: [PATCH] Use range in favor of xrange for py3k compatibility request_count is 2 so it really makes no difference performance-wise at all. --- tests/test_keep_alive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_keep_alive.py b/tests/test_keep_alive.py index 447fc8e..8778926 100644 --- a/tests/test_keep_alive.py +++ b/tests/test_keep_alive.py @@ -46,7 +46,7 @@ class KeepAliveTests(unittest.TestCase): self.make_requests(self.proxies) def make_requests(self, proxies=None): - for _ in xrange(self.request_count): + for _ in range(self.request_count): self.session.get(self.url, proxies=proxies).text def check_each_request_are_in_same_connection(self): -- 2.34.1