projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e47d5e
)
Use range in favor of xrange for py3k compatibility
author
Pascal Hartig
<phartig@rdrei.net>
Fri, 14 Dec 2012 22:27:10 +0000
(23:27 +0100)
committer
Pascal Hartig
<phartig@rdrei.net>
Fri, 14 Dec 2012 22:29:33 +0000
(23:29 +0100)
request_count is 2 so it really makes no difference performance-wise at all.
tests/test_keep_alive.py
patch
|
blob
|
history
diff --git
a/tests/test_keep_alive.py
b/tests/test_keep_alive.py
index
447fc8e
..
8778926
100644
(file)
--- 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)
\r
\r
def make_requests(self, proxies=None):
\r
- for _ in
xrange(self.request_count):
\r
+ for _ in
range(self.request_count):
self.session.get(self.url, proxies=proxies).text
\r
\r
def check_each_request_are_in_same_connection(self):
\r