summaryrefslogtreecommitdiff
path: root/tests/test_swiftclient.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@enovance.com>2014-03-24 18:21:34 +0100
committerVictor Stinner <victor.stinner@enovance.com>2014-03-27 12:21:25 +0100
commit701faf0d16584a7c38bd0ba9f9ae778ca9912dbe (patch)
tree2e4e4ac695ec327fb4fc19eadb2db7cf396fe1be /tests/test_swiftclient.py
parent100419c0b3443419b942d44e6e9d04ae6122678c (diff)
downloadpython-swiftclient-701faf0d16584a7c38bd0ba9f9ae778ca9912dbe.tar.gz
Replace dict.iteritems() with dict.items()
dict.iteritems() has been removed in Python 3. In Python 2, dict.items() creates a temporary list, but Samuel Merritt wrote: "The size of the data is small enough that we don't need to worry about the memory consumption; it's all just HTTP headers." Change-Id: Iac427b8bbd032e4a1efb2bdc84a3968217eb6ddf
Diffstat (limited to 'tests/test_swiftclient.py')
-rw-r--r--tests/test_swiftclient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_swiftclient.py b/tests/test_swiftclient.py
index b57bf9f..8f70947 100644
--- a/tests/test_swiftclient.py
+++ b/tests/test_swiftclient.py
@@ -168,7 +168,7 @@ class MockHttpResponse():
self.status = 200
# This simulate previous httplib implementation that would do a
# putrequest() and then use putheader() to send header.
- for k, v in kwarg['headers'].iteritems():
+ for k, v in kwarg['headers'].items():
self.buffer.append('%s: %s' % (k, v))
return self.fake_response()