mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Use range in favor of xrange for py3k compatibility
request_count is 2 so it really makes no difference performance-wise at all.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user